org.apache.camel.component.stream
Class StreamEndpoint

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultEndpoint
          extended by org.apache.camel.component.stream.StreamEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton, Service, ShutdownableService, HasId

public class StreamEndpoint
extends DefaultEndpoint


Constructor Summary
StreamEndpoint(String endpointUri)
           
StreamEndpoint(String endpointUri, Component component)
           
 
Method Summary
 Consumer createConsumer(Processor processor)
          Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor
 Producer createProducer()
          Creates a new producer which is used send messages into the endpoint
 long getDelay()
           
 String getEncoding()
           
 String getFileName()
           
 int getGroupLines()
           
 long getInitialPromptDelay()
           
 long getPromptDelay()
           
 String getPromptMessage()
           
 long getScanStreamDelay()
           
 String getUrl()
           
 boolean isRetry()
           
 boolean isScanStream()
           
 boolean isSingleton()
          Whether this class supports being singleton or not.
 void setDelay(long delay)
           
 void setEncoding(String encoding)
           
 void setFileName(String fileName)
           
 void setGroupLines(int groupLines)
           
 void setInitialPromptDelay(long initialPromptDelay)
           
 void setPromptDelay(long promptDelay)
           
 void setPromptMessage(String promptMessage)
           
 void setRetry(boolean retry)
           
 void setScanStream(boolean scanStream)
           
 void setScanStreamDelay(long scanStreamDelay)
           
 void setUrl(String url)
           
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureProperties, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

StreamEndpoint

public StreamEndpoint(String endpointUri,
                      Component component)
               throws Exception
Throws:
Exception

StreamEndpoint

public StreamEndpoint(String endpointUri)
Method Detail

createConsumer

public Consumer createConsumer(Processor processor)
                        throws Exception
Description copied from interface: Endpoint
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor

Parameters:
processor - the given processor
Returns:
a newly created consumer
Throws:
Exception - can be thrown

createProducer

public Producer createProducer()
                        throws Exception
Description copied from interface: Endpoint
Creates a new producer which is used send messages into the endpoint

Returns:
a newly created producer
Throws:
Exception - can be thrown

isSingleton

public boolean isSingleton()
Description copied from interface: IsSingleton
Whether this class supports being singleton or not.

Returns:
true to be a single shared instance, false to create new instances.

getFileName

public String getFileName()

setFileName

public void setFileName(String fileName)

getUrl

public String getUrl()

setUrl

public void setUrl(String url)

getDelay

public long getDelay()

setDelay

public void setDelay(long delay)

getEncoding

public String getEncoding()

setEncoding

public void setEncoding(String encoding)

getPromptMessage

public String getPromptMessage()

setPromptMessage

public void setPromptMessage(String promptMessage)

getPromptDelay

public long getPromptDelay()

setPromptDelay

public void setPromptDelay(long promptDelay)

getInitialPromptDelay

public long getInitialPromptDelay()

setInitialPromptDelay

public void setInitialPromptDelay(long initialPromptDelay)

isScanStream

public boolean isScanStream()

setScanStream

public void setScanStream(boolean scanStream)

isRetry

public boolean isRetry()

setRetry

public void setRetry(boolean retry)

getScanStreamDelay

public long getScanStreamDelay()

setScanStreamDelay

public void setScanStreamDelay(long scanStreamDelay)

getGroupLines

public int getGroupLines()

setGroupLines

public void setGroupLines(int groupLines)


Apache CAMEL