@Bean(name="registration-throttling-processor", active=true) public class RegistrationThrottlingProcessor extends Object implements XMPPIOProcessor
Constructor and Description |
---|
RegistrationThrottlingProcessor() |
Modifier and Type | Method and Description |
---|---|
String |
getId()
Returns identifier of processor
|
void |
getStatistics(StatisticsList list)
Returns statistics generated by this processor
|
void |
packetsSent(XMPPIOService service)
Method is called when all waiting data was written to socket.
|
void |
processCommand(XMPPIOService service,
Packet packet)
Process command execution which may be sent from other component and should be processed by processor
|
boolean |
processIncoming(XMPPIOService service,
Packet packet)
Process packets read from socket as they are sent to SessionManager.
|
boolean |
processOutgoing(XMPPIOService service,
Packet packet)
Process outgoing packets as they are added to XMPPIOService outgoing packets queue.
|
boolean |
serviceStopped(XMPPIOService service,
boolean streamClosed)
Method called when XMPPIOService is closed.
|
void |
streamError(XMPPIOService service,
StreamError streamError)
Method called when XMPP stream error is about to be sent
|
Element[] |
supStreamFeatures(XMPPIOService service)
Returns array of features added by this processor
|
public static final String ID
public String getId()
XMPPIOProcessor
getId
in interface XMPPIOProcessor
public void getStatistics(StatisticsList list)
XMPPIOProcessor
getStatistics
in interface XMPPIOProcessor
public Element[] supStreamFeatures(XMPPIOService service)
XMPPIOProcessor
supStreamFeatures
in interface XMPPIOProcessor
public boolean processIncoming(XMPPIOService service, Packet packet)
XMPPIOProcessor
processIncoming
in interface XMPPIOProcessor
public boolean processOutgoing(XMPPIOService service, Packet packet)
XMPPIOProcessor
processOutgoing
in interface XMPPIOProcessor
public void packetsSent(XMPPIOService service) throws IOException
XMPPIOProcessor
packetsSent
in interface XMPPIOProcessor
IOException
public void processCommand(XMPPIOService service, Packet packet)
XMPPIOProcessor
processCommand
in interface XMPPIOProcessor
public boolean serviceStopped(XMPPIOService service, boolean streamClosed)
XMPPIOProcessor
serviceStopped
in interface XMPPIOProcessor
public void streamError(XMPPIOService service, StreamError streamError)
XMPPIOProcessor
streamError
in interface XMPPIOProcessor
Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.