SMILA (incubation) API documentation

org.eclipse.smila.connectivity.queue.worker.internal.listener
Class ListenerRuleImpl

java.lang.Object
  extended by org.eclipse.smila.connectivity.queue.worker.internal.AbstractLoggedComponent
      extended by org.eclipse.smila.connectivity.queue.worker.internal.AbstractRule<ListenerRuleType>
          extended by org.eclipse.smila.connectivity.queue.worker.internal.listener.ListenerRuleImpl
All Implemented Interfaces:
ListenerRule, ManagementAgent

public class ListenerRuleImpl
extends AbstractRule<ListenerRuleType>
implements ListenerRule, ManagementAgent

The Class ListenerRule.


Field Summary
 
Fields inherited from class org.eclipse.smila.connectivity.queue.worker.internal.AbstractRule
_accessPoint, _ruleConfig
 
Fields inherited from class org.eclipse.smila.connectivity.queue.worker.internal.AbstractLoggedComponent
_id, _log
 
Constructor Summary
ListenerRuleImpl(ServicesAccessPoint accessPoint, ListenerRuleType ruleConfig)
          Instantiates a new listener rule.
 
Method Summary
 void decreaseNoOfThreads()
          Decrement threads.
 int getMaxMessageBlockSize()
          Gets the maximum number of messages to be received from the Queue in one session quantity.
 PerformanceCounter getNoOfProcessedRecords()
          Gets the records processed.
 int getNoOfThreads()
          Gets the threads quantity.
 void increaseNoOfThreads()
          Increment threads.
 void setMaxMessageBlockSize(int size)
          Sets the maximum number of messages to receive in one session from the Queue..
 void setNoOfThreads(int size)
          Sets the threads quantity.
 
Methods inherited from class org.eclipse.smila.connectivity.queue.worker.internal.AbstractLoggedComponent
msg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerRuleImpl

public ListenerRuleImpl(ServicesAccessPoint accessPoint,
                        ListenerRuleType ruleConfig)
                 throws BrokerConnectionException
Instantiates a new listener rule.

Parameters:
accessPoint - the access point
ruleConfig - the rule config
Throws:
BrokerConnectionException - the broker connection exception
Method Detail

increaseNoOfThreads

public void increaseNoOfThreads()
Increment threads.

Specified by:
increaseNoOfThreads in interface ListenerRule
See Also:
ListenerRule.increaseNoOfThreads()

decreaseNoOfThreads

public void decreaseNoOfThreads()
Decrement threads.

Specified by:
decreaseNoOfThreads in interface ListenerRule
See Also:
ListenerRule.decreaseNoOfThreads()

getNoOfThreads

public int getNoOfThreads()
Gets the threads quantity.

Specified by:
getNoOfThreads in interface ListenerRule
Returns:
the threads quantity
See Also:
ListenerRule.getNoOfThreads()

setNoOfThreads

public void setNoOfThreads(int size)
Sets the threads quantity.

Specified by:
setNoOfThreads in interface ListenerRule
Parameters:
size - the new threads quantity
See Also:
ListenerRule.setNoOfThreads(int)

getNoOfProcessedRecords

public PerformanceCounter getNoOfProcessedRecords()
Gets the records processed.

Specified by:
getNoOfProcessedRecords in interface ListenerRule
Returns:
the records processed
See Also:
ListenerRule.getNoOfProcessedRecords()

getMaxMessageBlockSize

public int getMaxMessageBlockSize()
Gets the maximum number of messages to be received from the Queue in one session quantity.

Specified by:
getMaxMessageBlockSize in interface ListenerRule
Returns:
the maximum message block size
See Also:
ListenerRule.getMaxMessageBlockSize()

setMaxMessageBlockSize

public void setMaxMessageBlockSize(int size)
Sets the maximum number of messages to receive in one session from the Queue..

Specified by:
setMaxMessageBlockSize in interface ListenerRule
Parameters:
size - the new maximum message block size
See Also:
ListenerRule.setMaxMessageBlockSize(int)

SMILA (incubation) API documentation