|
Openfire 3.6.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.container.BasicModule org.jivesoftware.openfire.spi.PacketDelivererImpl
public class PacketDelivererImpl
In-memory implementation of the packet deliverer service
Field Summary | |
---|---|
protected SocketPacketWriteHandler |
deliverHandler
The handler that does the actual delivery (could be a channel instead) |
Constructor Summary | |
---|---|
PacketDelivererImpl()
|
Method Summary | |
---|---|
void |
deliver(Packet packet)
Delivers the given packet based on packet recipient and sender. |
void |
start()
Starts the basic module. |
void |
stop()
Stops the basic module. |
Methods inherited from class org.jivesoftware.openfire.container.BasicModule |
---|
destroy, getName, initialize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SocketPacketWriteHandler deliverHandler
Constructor Detail |
---|
public PacketDelivererImpl()
Method Detail |
---|
public void deliver(Packet packet) throws UnauthorizedException, PacketException
PacketDeliverer
deliver
in interface PacketDeliverer
packet
- the packet to route
PacketException
- if the packet is null or the packet could not be routed.
UnauthorizedException
public void start() throws IllegalStateException
BasicModule
Starts the basic module.
Inheriting classes that choose to override this method MUST call this start() method before accessing BasicModule resources.
start
in interface Module
start
in class BasicModule
IllegalStateException
- If start is called before initialize
successfully returnspublic void stop()
BasicModule
Stops the basic module.
Inheriting classes that choose to override this method MUST call this stop() method before accessing BasicModule resources.
stop
in interface Module
stop
in class BasicModule
|
Openfire 3.6.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |