|
Wildfire 3.2.4 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.wildfire.container.BasicModule
org.jivesoftware.wildfire.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 |
initialize(XMPPServer server)
Initializes the basic module. |
void |
start()
Starts the basic module. |
void |
stop()
Stops the basic module. |
| Methods inherited from class org.jivesoftware.wildfire.container.BasicModule |
|---|
destroy, getName |
| 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 PacketDelivererpacket - the packet to route
PacketException - if the packet is null or the packet could not be routed.
UnauthorizedExceptionpublic void initialize(XMPPServer server)
BasicModuleInitializes the basic module.
Inheriting classes that choose to override this method MUST call this initialize() method before accessing BasicModule resources.
initialize in interface Moduleinitialize in class BasicModuleserver - the server hosting this module.
public void start()
throws IllegalStateException
BasicModuleStarts the basic module.
Inheriting classes that choose to override this method MUST call this start() method before accessing BasicModule resources.
start in interface Modulestart in class BasicModuleIllegalStateException - If start is called before initialize
successfully returnspublic void stop()
BasicModuleStops the basic module.
Inheriting classes that choose to override this method MUST call this stop() method before accessing BasicModule resources.
stop in interface Modulestop in class BasicModule
|
Wildfire 3.2.4 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||