Package tigase.server.xmppclient
Class StreamErrorCounterIOProcessor
java.lang.Object
tigase.server.xmppclient.StreamErrorCounterIOProcessor
- All Implemented Interfaces:
XMPPIOProcessor
@Bean(name="stream-error-counter",
parent=ClientConnectionManager.class,
active=false)
public class StreamErrorCounterIOProcessor
extends Object
implements XMPPIOProcessor
- Author:
- andrzej
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Returns identifier of processorvoidgetStatistics(StatisticsList list) Returns statistics generated by this processorvoidpacketsSent(XMPPIOService service) Method is called when all waiting data was written to socket.voidprocessCommand(XMPPIOService service, Packet packet) Process command execution which may be sent from other component and should be processed by processorbooleanprocessIncoming(XMPPIOService service, Packet packet) Process packets read from socket as they are sent to SessionManager.booleanprocessOutgoing(XMPPIOService service, Packet packet) Process outgoing packets as they are added to XMPPIOService outgoing packets queue.booleanserviceStopped(XMPPIOService service, boolean streamClosed) Method called when XMPPIOService is closed.voidsetConnectionManager(ConnectionManager connectionManager) voidstreamError(XMPPIOService service, StreamError streamError) Method called when XMPP stream error is about to be sentElement[]supStreamFeatures(XMPPIOService service) Returns array of features added by this processor
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
StreamErrorCounterIOProcessor
public StreamErrorCounterIOProcessor()
-
-
Method Details
-
setConnectionManager
-
getId
Description copied from interface:XMPPIOProcessorReturns identifier of processor- Specified by:
getIdin interfaceXMPPIOProcessor
-
getStatistics
Description copied from interface:XMPPIOProcessorReturns statistics generated by this processor- Specified by:
getStatisticsin interfaceXMPPIOProcessor
-
supStreamFeatures
Description copied from interface:XMPPIOProcessorReturns array of features added by this processor- Specified by:
supStreamFeaturesin interfaceXMPPIOProcessor
-
processIncoming
Description copied from interface:XMPPIOProcessorProcess packets read from socket as they are sent to SessionManager.- Specified by:
processIncomingin interfaceXMPPIOProcessor- Returns:
- true if packet should not be forwarded
-
processOutgoing
Description copied from interface:XMPPIOProcessorProcess outgoing packets as they are added to XMPPIOService outgoing packets queue.- Specified by:
processOutgoingin interfaceXMPPIOProcessor- Returns:
- true if packet should be removed
-
packetsSent
Description copied from interface:XMPPIOProcessorMethod is called when all waiting data was written to socket.- Specified by:
packetsSentin interfaceXMPPIOProcessor- Throws:
IOException
-
processCommand
Description copied from interface:XMPPIOProcessorProcess command execution which may be sent from other component and should be processed by processor- Specified by:
processCommandin interfaceXMPPIOProcessor
-
serviceStopped
Description copied from interface:XMPPIOProcessorMethod called when XMPPIOService is closed.- Specified by:
serviceStoppedin interfaceXMPPIOProcessor- Returns:
- true if connecton manager should not be notified about stopping of this service
-
streamError
Description copied from interface:XMPPIOProcessorMethod called when XMPP stream error is about to be sent- Specified by:
streamErrorin interfaceXMPPIOProcessor
-