public class RegistrationThrottlingProcessor extends Object implements XMPPIOProcessor
| Modifier and Type | Class and Description |
|---|---|
protected class |
RegistrationThrottlingProcessor.CleanUpTask |
| Constructor and Description |
|---|
RegistrationThrottlingProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkLimits(XMPPIOService service) |
protected boolean |
checkLimits(XMPPIOService service,
Packet packet) |
protected void |
cleanUp(List<Long> registrationTimes) |
protected void |
cleanUpFromTimer() |
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.
|
protected void |
scheduleCleanUpIfNeeded() |
boolean |
serviceStopped(XMPPIOService service,
boolean streamClosed)
Method called when XMPPIOService is closed.
|
void |
setConnectionManager(ConnectionManager connectionManager)
Sets connection manager instance for which this XMPPIOProcessor is used
|
void |
setProperties(Map<String,Object> props)
Method used for setting properties
|
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()
XMPPIOProcessorgetId in interface XMPPIOProcessorpublic void getStatistics(StatisticsList list)
XMPPIOProcessorgetStatistics in interface XMPPIOProcessorpublic Element[] supStreamFeatures(XMPPIOService service)
XMPPIOProcessorsupStreamFeatures in interface XMPPIOProcessorpublic boolean processIncoming(XMPPIOService service, Packet packet)
XMPPIOProcessorprocessIncoming in interface XMPPIOProcessorpublic boolean processOutgoing(XMPPIOService service, Packet packet)
XMPPIOProcessorprocessOutgoing in interface XMPPIOProcessorpublic void packetsSent(XMPPIOService service) throws IOException
XMPPIOProcessorpacketsSent in interface XMPPIOProcessorIOExceptionpublic void processCommand(XMPPIOService service, Packet packet)
XMPPIOProcessorprocessCommand in interface XMPPIOProcessorpublic boolean serviceStopped(XMPPIOService service, boolean streamClosed)
XMPPIOProcessorserviceStopped in interface XMPPIOProcessorpublic void setConnectionManager(ConnectionManager connectionManager)
XMPPIOProcessorsetConnectionManager in interface XMPPIOProcessorpublic void setProperties(Map<String,Object> props)
XMPPIOProcessorsetProperties in interface XMPPIOProcessorpublic void streamError(XMPPIOService service, StreamError streamError)
XMPPIOProcessorstreamError in interface XMPPIOProcessorprotected void cleanUpFromTimer()
protected boolean checkLimits(XMPPIOService service, Packet packet)
protected boolean checkLimits(XMPPIOService service)
protected void scheduleCleanUpIfNeeded()
Copyright © 2022 "Tigase, Inc.". All rights reserved.