public interface ServerComponent
| Modifier and Type | Method and Description |
|---|---|
JID |
getComponentId()
Method description
|
ComponentInfo |
getComponentInfo()
Allows to obtain various informations about components
|
String |
getName()
Method description
|
void |
initializationCompleted()
Method is called by
MessageRouter when all the startup components of
the server have been loaded and configured through setProperties(...) call. |
boolean |
isInitializationComplete()
Method returns information about whether the initialization process
(initializationCompleted()) method has been called.
|
void |
processPacket(Packet packet,
Queue<Packet> results)
processPacket is a blocking processing method implemented
by all components. |
void |
release()
Method description
|
void |
setName(String name)
Method description
|
void initializationCompleted()
MessageRouter when all the startup components of
the server have been loaded and configured through setProperties(...) call.
At this point the whole server should be loaded and functional, except
initializations taking place in this routine.void processPacket(Packet packet, Queue<Packet> results)
processPacket is a blocking processing method implemented
by all components. This method processes packet and returns results
instantly without waiting for any resources.packet - a Packet valueresults - void release()
JID getComponentId()
ComponentInfo getComponentInfo()
String getName()
boolean isInitializationComplete()
true if initialization of the object has been completed
false otherwisevoid setName(String name)
name - Copyright © 2022 "Tigase, Inc.". All rights reserved.