Package com.swiftmq.impl.streams.comp.io
Class TopicInput
java.lang.Object
com.swiftmq.impl.streams.comp.io.TopicInput
- All Implemented Interfaces:
DestinationInput
,Input
Consumes Messages from a Topic.
- Author:
- IIT Software GmbH, Muenster/Germany, (c) 2016, All Rights Reserved
-
Method Summary
Modifier and TypeMethodDescriptionSets the client id for a durable subscriber.void
close()
Closes this Input.void
collect
(long interval) Internal use.current()
Returns the current Message of this Input.Sets the current Message on this Input.Returns the destinationNamedestinationName
(String destinationName) Sets the destinationName if different from the name used in stream.create().input(name)durable()
Marks this TopicInput as durable.durableName
(String durableName) Sets the durable name for a durable subscriber.void
Internal use.Internal use.Internal use.Internal use.getName()
Returns the name of this Input.Internal use.Returns the associated JMS Message Selectorint
Internal use.boolean
Internal use.onInput
(InputCallback callback) Sets the onInput callback.Sets the JMS Message Selectorvoid
setMessageProcessor
(QueueMessageProcessor messageProcessor) Internal use.void
void
setQueueName
(String queueName) Internal use.void
setSubscriberId
(int subscriberId) Internal use.void
start()
Starts this Input.toString()
-
Method Details
-
getName
Description copied from interface:Input
Returns the name of this Input. -
setName
-
getSelector
Description copied from interface:DestinationInput
Returns the associated JMS Message Selector- Specified by:
getSelector
in interfaceDestinationInput
- Returns:
- JMS Message Selector
-
getMessageProcessor
Description copied from interface:DestinationInput
Internal use.- Specified by:
getMessageProcessor
in interfaceDestinationInput
-
setMessageProcessor
Description copied from interface:DestinationInput
Internal use.- Specified by:
setMessageProcessor
in interfaceDestinationInput
-
destinationName
Description copied from interface:DestinationInput
Sets the destinationName if different from the name used in stream.create().input(name)- Specified by:
destinationName
in interfaceDestinationInput
- Parameters:
destinationName
- destinationName- Returns:
- DestinationInput
-
destinationName
Description copied from interface:DestinationInput
Returns the destinationName- Specified by:
destinationName
in interfaceDestinationInput
- Returns:
- destinationName
-
selector
Description copied from interface:DestinationInput
Sets the JMS Message Selector- Specified by:
selector
in interfaceDestinationInput
- Parameters:
selector
- JMS Message Selector- Returns:
- DestinationInput
-
current
Description copied from interface:Input
Sets the current Message on this Input. -
current
Description copied from interface:Input
Returns the current Message of this Input. -
onInput
Description copied from interface:DestinationInput
Sets the onInput callback.- Specified by:
onInput
in interfaceDestinationInput
- Parameters:
callback
- callback- Returns:
- DestinationInput
-
executeCallback
Description copied from interface:Input
Internal use.- Specified by:
executeCallback
in interfaceInput
- Throws:
Exception
-
isDurable
public boolean isDurable()Internal use. -
getClientId
Internal use. -
getDurableName
Internal use. -
getSubscriberId
public int getSubscriberId()Internal use. -
setSubscriberId
public void setSubscriberId(int subscriberId) Internal use. -
getQueueName
Internal use. -
setQueueName
Internal use. -
durable
Marks this TopicInput as durable.- Returns:
- TopicInput
-
clientId
Sets the client id for a durable subscriber.- Parameters:
clientId
- client id- Returns:
- TopicInput
-
durableName
Sets the durable name for a durable subscriber.- Parameters:
durableName
- durable name- Returns:
- TopicInput
-
collect
public void collect(long interval) Description copied from interface:Input
Internal use. -
start
Description copied from interface:Input
Starts this Input. This method is called automatically if an Input is created outside a callback. If it is created inside, it must be called explicitly. -
close
public void close()Description copied from interface:Input
Closes this Input. -
toString
-