Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- addConnection(VirtualConnection) - Method in class com.xpdustry.claj.api.net.ProxyClient
- addListener(NetListener) - Method in class com.xpdustry.claj.api.net.VirtualConnection
-
Only used when sending world data
- allowStateRequests - Variable in class com.xpdustry.claj.api.ClajProxy
B
- broadcast(Object, boolean) - Method in class com.xpdustry.claj.api.net.ProxyClient
-
Send an object to every clients connected to the room.
- broadcastImpl(Object, boolean) - Method in class com.xpdustry.claj.api.net.ProxyClient
-
Doesn't checks for availability.
- broadcastSupported - Variable in class com.xpdustry.claj.api.net.ProxyClient
-
As packet broadcasting is not a protocol breaking change, some servers may not support it.
C
- cancel() - Method in class com.xpdustry.claj.api.ClajPinger
-
Cancel running operation.
- cancel() - Method in class com.xpdustry.claj.api.ClajPingerManager
-
Cancel the queue and current tasks.
- canceling - Variable in class com.xpdustry.claj.api.ClajPinger
-
If
true, current and future operations will be canceled. - cancelPingers() - Method in class com.xpdustry.claj.api.Claj
- Claj - Class in com.xpdustry.claj.api
- Claj(ClajProvider, ClajProxyManager, ClajPingerManager) - Constructor for class com.xpdustry.claj.api.Claj
- ClajClientSerializer - Class in com.xpdustry.claj.api
- ClajClientSerializer() - Constructor for class com.xpdustry.claj.api.ClajClientSerializer
- ClajLink - Class in com.xpdustry.claj.api
-
CLaJ links (for this version) are URI, and formatted like that:
claj://host:port/room-idorhost:port/room-id.
-'claj://'is the protocol name (this part is optional). - ClajLink(String, int, long) - Constructor for class com.xpdustry.claj.api.ClajLink
- ClajLink(String, int, String) - Constructor for class com.xpdustry.claj.api.ClajLink
- ClajPinger - Class in com.xpdustry.claj.api
-
Note that
ClajPinger.pingHost(String, int, Cons, Cons),ClajPinger.requestRoomList(String, int, Cons, Cons)andClajPinger.joinRoom(String, int, long, Cons, Cons, Cons)are non-blocking operations. - ClajPinger(ClajProvider) - Constructor for class com.xpdustry.claj.api.ClajPinger
- ClajPinger.Serializer - Class in com.xpdustry.claj.api
-
Modified serializer that reads only one packet type in pinging mode.
- ClajPingerManager - Class in com.xpdustry.claj.api
- ClajPingerManager(ClajProvider) - Constructor for class com.xpdustry.claj.api.ClajPingerManager
- ClajPingerManager(ClajProvider, int) - Constructor for class com.xpdustry.claj.api.ClajPingerManager
- ClajProvider - Interface in com.xpdustry.claj.api
-
Interface to provide client implementation dependent things.
- ClajProxy - Class in com.xpdustry.claj.api
-
The claj client that redirects packets from the relay to the local mindustry server.
- ClajProxy(ClajProvider) - Constructor for class com.xpdustry.claj.api.ClajProxy
- ClajProxyManager - Class in com.xpdustry.claj.api
- ClajProxyManager(ClajProvider) - Constructor for class com.xpdustry.claj.api.ClajProxyManager
- ClajProxyManager(ClajProvider, int) - Constructor for class com.xpdustry.claj.api.ClajProxyManager
- ClajRoom<T> - Class in com.xpdustry.claj.api
- ClajRoom(long) - Constructor for class com.xpdustry.claj.api.ClajRoom
- ClajRoom(long, boolean, boolean, T, ClajLink, ClajType, int, int) - Constructor for class com.xpdustry.claj.api.ClajRoom
- clearConnections() - Method in class com.xpdustry.claj.api.net.ProxyClient
- clients - Variable in class com.xpdustry.claj.api.ClajRoom
-
Current number of client in the room.
- close() - Method in class com.xpdustry.claj.api.ClajPinger
- close(int, DcReason) - Method in class com.xpdustry.claj.api.net.ProxyClient
-
Can be used notify the server to close the connection when not created by the proxy.
- close(DcReason) - Method in class com.xpdustry.claj.api.ClajPinger
- close(DcReason) - Method in class com.xpdustry.claj.api.net.ProxyClient
- close(DcReason) - Method in class com.xpdustry.claj.api.net.VirtualConnection
- close(VirtualConnection, DcReason) - Method in class com.xpdustry.claj.api.net.ProxyClient
- closeAllConnections(DcReason) - Method in class com.xpdustry.claj.api.net.ProxyClient
- closeAllRooms() - Method in class com.xpdustry.claj.api.ClajProxyManager
- closeQuietly(DcReason) - Method in class com.xpdustry.claj.api.net.VirtualConnection
-
Close the connection without notify the server about that.
- closeQuietly(VirtualConnection, DcReason) - Method in class com.xpdustry.claj.api.net.ProxyClient
-
Close connection without notify the server.
- closeRoom() - Method in class com.xpdustry.claj.api.ClajProxy
- closeRoom() - Method in class com.xpdustry.claj.api.ClajProxyManager
-
Closes the first proxy's room.
- closeRoom(int) - Method in class com.xpdustry.claj.api.ClajProxyManager
- closeRoom(CloseReason) - Method in class com.xpdustry.claj.api.ClajProxy
-
nullreason means closed by user. - closeRooms() - Method in class com.xpdustry.claj.api.Claj
- closing - Variable in class com.xpdustry.claj.api.net.ProxyClient
- com.xpdustry.claj.api - package com.xpdustry.claj.api
- com.xpdustry.claj.api.net - package com.xpdustry.claj.api.net
- CON_BROADCAST - Static variable in class com.xpdustry.claj.api.ClajProxy
-
Id meaning that that the connection is invalid, and used to broadcast packets to all clients.
- conConnected(int, long) - Method in class com.xpdustry.claj.api.ClajProxy
- conConnected(int, long) - Method in class com.xpdustry.claj.api.net.ProxyClient
- conDisconnected(int, DcReason) - Method in class com.xpdustry.claj.api.ClajProxy
- conDisconnected(int, DcReason) - Method in class com.xpdustry.claj.api.net.ProxyClient
- conIdle(int) - Method in class com.xpdustry.claj.api.ClajProxy
- conIdle(int) - Method in class com.xpdustry.claj.api.net.ProxyClient
- conListener - Variable in class com.xpdustry.claj.api.net.ProxyClient
- connect(int, InetAddress, int, int) - Method in class com.xpdustry.claj.api.net.ProxyClient
- connect(String, int) - Method in class com.xpdustry.claj.api.ClajPinger
-
Connect using
ClajPinger.connectTimeoutand sameportfor TCP and UDP. - connect(String, int) - Method in class com.xpdustry.claj.api.net.ProxyClient
-
Connect used
ProxyClient.defaultTimeoutand sameportfor TCP and UDP. - connect(String, int, Cons, Cons, Cons) - Method in class com.xpdustry.claj.api.ClajProxy
-
This method must be used instead of others connect methods
- connectClient(String, int, Runnable, ByteBuffer) - Method in interface com.xpdustry.claj.api.ClajProvider
-
Connect the client to the specified server.
- connectHost - Variable in class com.xpdustry.claj.api.ClajPinger
- connectHost - Variable in class com.xpdustry.claj.api.net.ProxyClient
- connecting - Variable in class com.xpdustry.claj.api.ClajPinger
- connecting - Variable in class com.xpdustry.claj.api.net.ProxyClient
- connections - Variable in class com.xpdustry.claj.api.net.ProxyClient
- connectionsMap - Variable in class com.xpdustry.claj.api.net.ProxyClient
- connectPort - Variable in class com.xpdustry.claj.api.ClajPinger
- connectTcpPort - Variable in class com.xpdustry.claj.api.net.ProxyClient
- connectTimeout - Static variable in class com.xpdustry.claj.api.ClajPinger
-
In ms.
- connectTimeout - Variable in class com.xpdustry.claj.api.net.ProxyClient
- connectUdpPort - Variable in class com.xpdustry.claj.api.net.ProxyClient
- conReceived(int, Object) - Method in class com.xpdustry.claj.api.ClajProxy
- conReceived(int, Object) - Method in class com.xpdustry.claj.api.net.ProxyClient
- created - Variable in class com.xpdustry.claj.api.ClajPingerManager
- created - Variable in class com.xpdustry.claj.api.ClajProxyManager
- createdPingers() - Method in class com.xpdustry.claj.api.ClajPingerManager
- createdProxies() - Method in class com.xpdustry.claj.api.ClajProxyManager
- createRoom(int, String, int, Cons, Cons, Cons) - Method in class com.xpdustry.claj.api.ClajProxyManager
- createRoom(String, int, Cons, Cons, Cons) - Method in class com.xpdustry.claj.api.Claj
- createRoom(String, int, Cons, Cons, Cons) - Method in class com.xpdustry.claj.api.ClajProxyManager
-
This will try to find an available proxy.
D
- defaultTimeout - Static variable in class com.xpdustry.claj.api.net.ProxyClient
- dispatcher - Variable in class com.xpdustry.claj.api.net.VirtualConnection
- dispose() - Method in class com.xpdustry.claj.api.Claj
-
Stop the room and the joiner.
- dispose() - Method in class com.xpdustry.claj.api.ClajPingerManager
-
Dispose all pingers.
- dispose() - Method in class com.xpdustry.claj.api.ClajProxyManager
-
Dispose all proxies.
E
- eachConnections(Cons) - Method in class com.xpdustry.claj.api.net.ProxyClient
- encodedRoomId - Variable in class com.xpdustry.claj.api.ClajLink
- ensureCreated(int) - Method in class com.xpdustry.claj.api.ClajProxyManager
- ensurePingerCreated(int) - Method in class com.xpdustry.claj.api.ClajPingerManager
- ensurePingerPingerStarted(int) - Method in class com.xpdustry.claj.api.ClajPingerManager
- ensureStarted(int) - Method in class com.xpdustry.claj.api.ClajProxyManager
- equals(Object) - Method in class com.xpdustry.claj.api.ClajLink
- errorHandler - Variable in class com.xpdustry.claj.api.net.ProxyClient
F
- failed(Throwable) - Method in class com.xpdustry.claj.api.ClajPinger
- findFree() - Method in class com.xpdustry.claj.api.ClajPingerManager
-
Search for a pinger that's not working.
- findFree() - Method in class com.xpdustry.claj.api.ClajProxyManager
-
Search for a proxy with no created room.
- findFreeI() - Method in class com.xpdustry.claj.api.ClajPingerManager
- findFreeI() - Method in class com.xpdustry.claj.api.ClajProxyManager
- forceTcp - Variable in class com.xpdustry.claj.api.net.ProxyClient
-
Whether to force using the tcp connection when sending trough udp to the server.
- fromString(String) - Static method in class com.xpdustry.claj.api.ClajLink
G
- get() - Static method in class com.xpdustry.claj.api.Claj
- get() - Method in class com.xpdustry.claj.api.ClajPingerManager
- get() - Method in class com.xpdustry.claj.api.ClajProxyManager
- get(int) - Method in class com.xpdustry.claj.api.ClajPingerManager
- get(int) - Method in class com.xpdustry.claj.api.ClajProxyManager
- getConnection(int) - Method in class com.xpdustry.claj.api.net.ProxyClient
- getConnectionListener(ClajProxy) - Method in interface com.xpdustry.claj.api.ClajProvider
-
Listener where events are runs, added to all virtual connections.
- getConnections() - Method in class com.xpdustry.claj.api.net.ProxyClient
- getEndPoint() - Method in class com.xpdustry.claj.api.net.VirtualConnection
- getExecutor() - Method in interface com.xpdustry.claj.api.ClajProvider
-
Executor used to post blocking connection tasks.
- getID() - Method in class com.xpdustry.claj.api.net.VirtualConnection
- getInternalConnections() - Method in class com.xpdustry.claj.api.net.ProxyClient
- getLastProtocolError() - Method in class com.xpdustry.claj.api.net.VirtualConnection
- getListeners() - Method in class com.xpdustry.claj.api.net.VirtualConnection
- getOrNull(int) - Method in class com.xpdustry.claj.api.ClajPingerManager
- getOrNull(int) - Method in class com.xpdustry.claj.api.ClajProxyManager
- getPacketWrapperSerializer() - Method in interface com.xpdustry.claj.api.ClajProvider
-
Essential for the protocol to work!
- getPingerName(int) - Method in class com.xpdustry.claj.api.ClajPingerManager
- getProxyName(int) - Method in class com.xpdustry.claj.api.ClajProxyManager
- getRemoteAddressTCP() - Method in class com.xpdustry.claj.api.net.VirtualConnection
- getRemoteAddressUDP() - Method in class com.xpdustry.claj.api.net.VirtualConnection
- getReturnTripTime() - Method in class com.xpdustry.claj.api.net.VirtualConnection
- getTcpWriteBufferSize() - Method in class com.xpdustry.claj.api.net.VirtualConnection
- getType() - Method in interface com.xpdustry.claj.api.ClajProvider
-
The implementation type, used to validate compatibility between room host and clients.
- getVersion() - Method in interface com.xpdustry.claj.api.ClajProvider
-
The CLaJ version, used to request a room creation.
H
- handlePingerError(ClajPinger, Throwable) - Method in interface com.xpdustry.claj.api.ClajProvider
- handleProxyError(ClajProxy, Throwable) - Method in interface com.xpdustry.claj.api.ClajProvider
- hasCreatedPingers() - Method in class com.xpdustry.claj.api.ClajPingerManager
- hasCreatedProxies() - Method in class com.xpdustry.claj.api.ClajProxyManager
- hashCode() - Method in class com.xpdustry.claj.api.ClajLink
- hasOpenRoom() - Method in class com.xpdustry.claj.api.Claj
- hasOpenRoom() - Method in class com.xpdustry.claj.api.ClajProxyManager
-
Search whether a proxy have an open room.
- host - Variable in class com.xpdustry.claj.api.ClajLink
I
- id - Variable in class com.xpdustry.claj.api.net.VirtualConnection
- infoFailed - Variable in class com.xpdustry.claj.api.ClajPinger
- infoing - Variable in class com.xpdustry.claj.api.ClajPinger
- infoNotFound - Variable in class com.xpdustry.claj.api.ClajPinger
- infoSuccess - Variable in class com.xpdustry.claj.api.ClajPinger
- infoTimeout - Static variable in class com.xpdustry.claj.api.ClajPinger
-
In ms.
- init(ClajProvider) - Static method in class com.xpdustry.claj.api.Claj
-
Initializes the global CLaJ manager using
1proxy and3pingers. - init(ClajProvider, int, int) - Static method in class com.xpdustry.claj.api.Claj
-
Initializes the global CLaJ manager, and the
ConnectionPayloadPacketserializer. - initialized() - Static method in class com.xpdustry.claj.api.Claj
- INSTANCE - Static variable in class com.xpdustry.claj.api.Claj
- isBusy(int) - Method in class com.xpdustry.claj.api.ClajPingerManager
- isBusy(int) - Method in class com.xpdustry.claj.api.ClajProxyManager
- isConnected() - Method in class com.xpdustry.claj.api.net.VirtualConnection
- isConnecting() - Method in class com.xpdustry.claj.api.ClajPinger
- isConnecting() - Method in class com.xpdustry.claj.api.net.ProxyClient
- isIdle() - Method in class com.xpdustry.claj.api.net.VirtualConnection
-
The server will notify if the client is idling.
- isProtected - Variable in class com.xpdustry.claj.api.ClajProxy
- isProtected - Variable in class com.xpdustry.claj.api.ClajRoom
-
Whether the room needs a password to join, or not.
- isPublic - Variable in class com.xpdustry.claj.api.ClajProxy
- isPublic - Variable in class com.xpdustry.claj.api.ClajRoom
-
Note that for privacy, the server will never notify this.
- isRequestTimedOut() - Method in class com.xpdustry.claj.api.ClajPinger
- isRoomClosed() - Method in class com.xpdustry.claj.api.ClajProxyManager
-
Checks the first proxy.
- isRoomClosed(int) - Method in class com.xpdustry.claj.api.ClajProxyManager
- isRoomCreated() - Method in class com.xpdustry.claj.api.ClajProxyManager
-
Checks the first proxy.
- isRoomCreated(int) - Method in class com.xpdustry.claj.api.ClajProxyManager
- isRunning() - Method in class com.xpdustry.claj.api.ClajPinger
- isRunning() - Method in class com.xpdustry.claj.api.net.ProxyClient
- isWorking() - Method in class com.xpdustry.claj.api.ClajPinger
J
- joinDenied - Variable in class com.xpdustry.claj.api.ClajPinger
- joinFailed - Variable in class com.xpdustry.claj.api.ClajPinger
- joining - Variable in class com.xpdustry.claj.api.ClajPinger
- joinRoom(ClajLink, short, Runnable, Cons, Cons) - Method in class com.xpdustry.claj.api.Claj
- joinRoom(ClajLink, short, Runnable, Cons, Cons) - Method in class com.xpdustry.claj.api.ClajPingerManager
- joinRoom(ClajLink, Runnable, Cons, Cons) - Method in class com.xpdustry.claj.api.Claj
- joinRoom(ClajLink, Runnable, Cons, Cons) - Method in class com.xpdustry.claj.api.ClajPingerManager
- joinRoom(String, int, long, boolean, short, Cons, Cons, Cons) - Method in class com.xpdustry.claj.api.ClajPinger
- joinRoom(String, int, long, short, Cons, Cons, Cons) - Method in class com.xpdustry.claj.api.ClajPinger
- joinRoom(String, int, long, Cons, Cons, Cons) - Method in class com.xpdustry.claj.api.ClajPinger
- joinSuccess - Variable in class com.xpdustry.claj.api.ClajPinger
- joinTimeout - Static variable in class com.xpdustry.claj.api.ClajPinger
-
In ms.
L
- lastPing - Variable in class com.xpdustry.claj.api.net.ProxyClient
- lastRequest - Variable in class com.xpdustry.claj.api.ClajPinger
- link - Variable in class com.xpdustry.claj.api.ClajProxy
- link - Variable in class com.xpdustry.claj.api.ClajRoom
-
The link to the room.
- link() - Method in class com.xpdustry.claj.api.ClajProxy
- listFailed - Variable in class com.xpdustry.claj.api.ClajPinger
- listInfo - Variable in class com.xpdustry.claj.api.ClajPinger
- listing - Variable in class com.xpdustry.claj.api.ClajPinger
- listTimeout - Static variable in class com.xpdustry.claj.api.ClajPinger
-
In ms.
M
- makeBroadcastClosePacket(DcReason) - Method in class com.xpdustry.claj.api.ClajProxy
- makeBroadcastClosePacket(DcReason) - Method in class com.xpdustry.claj.api.net.ProxyClient
- makeBroadcastWrapPacket(Object, boolean) - Method in class com.xpdustry.claj.api.ClajProxy
- makeBroadcastWrapPacket(Object, boolean) - Method in class com.xpdustry.claj.api.net.ProxyClient
- makeConClosePacket(int, DcReason) - Method in class com.xpdustry.claj.api.ClajProxy
- makeConClosePacket(int, DcReason) - Method in class com.xpdustry.claj.api.net.ProxyClient
- makeConWrapPacket(int, Object, boolean) - Method in class com.xpdustry.claj.api.ClajProxy
- makeConWrapPacket(int, Object, boolean) - Method in class com.xpdustry.claj.api.net.ProxyClient
- makeJoinPacket(RoomJoinRequestPacket) - Method in class com.xpdustry.claj.api.ClajPinger
- makeRoom(long, boolean, ClajType, int, int, ByteBuffer) - Method in class com.xpdustry.claj.api.ClajPinger
- makeRoomClosePacket() - Method in class com.xpdustry.claj.api.ClajProxy
- makeRoomConfigPacket(boolean, boolean, short, boolean) - Method in class com.xpdustry.claj.api.ClajProxy
- makeRoomCreatePacket(int, ClajType) - Method in class com.xpdustry.claj.api.ClajProxy
- makeRoomStatePacket(long, ByteBuffer) - Method in class com.xpdustry.claj.api.ClajProxy
- maxClients - Variable in class com.xpdustry.claj.api.ClajRoom
-
Maximum number of CLaJ client allowed in this room.
N
- name - Variable in class com.xpdustry.claj.api.net.VirtualConnection
- newPinger() - Method in interface com.xpdustry.claj.api.ClajProvider
-
Used to create new pinger clients.
- newProxy() - Method in interface com.xpdustry.claj.api.ClajProvider
-
Used to create new proxy clients.
- NO_PASSWORD - Static variable in class com.xpdustry.claj.api.ClajPinger
- notifyConfiguration() - Method in class com.xpdustry.claj.api.ClajProxy
- notifyConnected0() - Method in class com.xpdustry.claj.api.net.VirtualConnection
- notifyDisconnected0(DcReason) - Method in class com.xpdustry.claj.api.net.VirtualConnection
- notifyIdle0() - Method in class com.xpdustry.claj.api.net.VirtualConnection
- notifyReceived0(Object) - Method in class com.xpdustry.claj.api.net.VirtualConnection
- notifyRoomState() - Method in class com.xpdustry.claj.api.ClajProxy
P
- pinger - Variable in class com.xpdustry.claj.api.ClajPinger.Serializer
- pingers - Variable in class com.xpdustry.claj.api.Claj
- pingers - Variable in class com.xpdustry.claj.api.ClajPingerManager
- pingers() - Method in class com.xpdustry.claj.api.ClajPingerManager
- pingFailed - Variable in class com.xpdustry.claj.api.ClajPinger
- pingHost(String, int, Cons, Cons) - Method in class com.xpdustry.claj.api.Claj
- pingHost(String, int, Cons, Cons) - Method in class com.xpdustry.claj.api.ClajPinger
- pingHost(String, int, Cons, Cons) - Method in class com.xpdustry.claj.api.ClajPingerManager
-
This queues new tasks if a ping is already in progress.
- pinging - Variable in class com.xpdustry.claj.api.ClajPinger
- pingSuccess - Variable in class com.xpdustry.claj.api.ClajPinger
- pingTime - Static variable in class com.xpdustry.claj.api.net.ProxyClient
-
Delay between pings.
- pingTimeout - Static variable in class com.xpdustry.claj.api.ClajPinger
-
In ms.
- port - Variable in class com.xpdustry.claj.api.ClajLink
- postTask(Cons, T) - Method in class com.xpdustry.claj.api.ClajPinger
- postTask(Cons, T) - Method in class com.xpdustry.claj.api.ClajProxy
- postTask(Cons2, T1, T2) - Method in class com.xpdustry.claj.api.ClajProxy
- postTask(Runnable) - Method in class com.xpdustry.claj.api.ClajPinger
- postTask(Runnable) - Method in interface com.xpdustry.claj.api.ClajProvider
-
Used to post tasks to the main thread, when receiving a packet or running callbacks.
- postTask(Runnable) - Method in class com.xpdustry.claj.api.ClajProxy
- PROTOCOL - Static variable in class com.xpdustry.claj.api.ClajLink
- provider - Variable in class com.xpdustry.claj.api.Claj
- provider - Variable in class com.xpdustry.claj.api.ClajPinger
- provider - Variable in class com.xpdustry.claj.api.ClajPingerManager
- provider - Variable in class com.xpdustry.claj.api.ClajProxy
- provider - Variable in class com.xpdustry.claj.api.ClajProxyManager
- provider() - Method in class com.xpdustry.claj.api.ClajPingerManager
- provider() - Method in class com.xpdustry.claj.api.ClajProxyManager
- proxies - Variable in class com.xpdustry.claj.api.Claj
- proxies - Variable in class com.xpdustry.claj.api.ClajProxyManager
- proxies() - Method in class com.xpdustry.claj.api.ClajProxyManager
- proxy - Variable in class com.xpdustry.claj.api.net.VirtualConnection
-
The real client, aka the proxy.
- ProxyClient - Class in com.xpdustry.claj.api.net
-
A client that act like a server.
- ProxyClient(int, int, NetSerializer) - Constructor for class com.xpdustry.claj.api.net.ProxyClient
Q
- queue - Variable in class com.xpdustry.claj.api.ClajPingerManager
- quietErrors - Variable in class com.xpdustry.claj.api.ClajProxy
-
Can be used to not call
ClajProxy.roomClosedcallback, if the error is already handled.
R
- read - Variable in class com.xpdustry.claj.api.ClajClientSerializer
- read(ByteBuffer) - Method in class com.xpdustry.claj.api.ClajClientSerializer
- read(ByteBuffer) - Method in class com.xpdustry.claj.api.ClajPinger.Serializer
- readClaj(ByteBuffer) - Method in class com.xpdustry.claj.api.ClajClientSerializer
- readRoomState(long, ClajType, ByteBuffer) - Method in interface com.xpdustry.claj.api.ClajProvider
-
Decode the room state received by the server.
- receiver - Variable in class com.xpdustry.claj.api.ClajPinger
- receiver - Variable in class com.xpdustry.claj.api.net.ProxyClient
- remoteAddress - Variable in class com.xpdustry.claj.api.net.VirtualConnection
-
Fake address calculated using the hash of the real client address provided by the server.
- removeConnection(VirtualConnection) - Method in class com.xpdustry.claj.api.net.ProxyClient
- removeListener(NetListener) - Method in class com.xpdustry.claj.api.net.VirtualConnection
-
Only used when sending world data
- requestedRoom - Variable in class com.xpdustry.claj.api.ClajPinger
- requestRoomId() - Method in class com.xpdustry.claj.api.ClajProxy
- requestRoomInfo(long) - Method in class com.xpdustry.claj.api.ClajPinger
- requestRoomInfo(ClajLink, Cons, Runnable, Cons) - Method in class com.xpdustry.claj.api.ClajPingerManager
- requestRoomInfo(String, int, long, Cons, Runnable, Cons) - Method in class com.xpdustry.claj.api.ClajPinger
- requestRoomJoin(long, boolean, short) - Method in class com.xpdustry.claj.api.ClajPinger
- requestRoomList() - Method in class com.xpdustry.claj.api.ClajPinger
- requestRoomList(String, int, Cons, Cons) - Method in class com.xpdustry.claj.api.ClajPinger
- requestServerStatus() - Method in class com.xpdustry.claj.api.ClajPinger
- reserved - Variable in class com.xpdustry.claj.api.ClajPingerManager
- reserved - Variable in class com.xpdustry.claj.api.ClajProxyManager
- resetIdle() - Method in class com.xpdustry.claj.api.net.VirtualConnection
- resetInfoState(Cons, Runnable, Cons) - Method in class com.xpdustry.claj.api.ClajPinger
- resetJoinState(Cons, Cons, Cons) - Method in class com.xpdustry.claj.api.ClajPinger
- resetListState(Cons, Cons) - Method in class com.xpdustry.claj.api.ClajPinger
- resetPingState(Cons, Cons) - Method in class com.xpdustry.claj.api.ClajPinger
- roomClosed - Variable in class com.xpdustry.claj.api.ClajProxy
- roomCreated - Variable in class com.xpdustry.claj.api.ClajProxy
- roomCreated() - Method in class com.xpdustry.claj.api.ClajProxy
- roomId - Variable in class com.xpdustry.claj.api.ClajLink
- roomId - Variable in class com.xpdustry.claj.api.ClajProxy
- roomId - Variable in class com.xpdustry.claj.api.ClajRoom
- roomId() - Method in class com.xpdustry.claj.api.ClajProxy
-
0means no room created. - roomPassword - Variable in class com.xpdustry.claj.api.ClajProxy
- run() - Method in class com.xpdustry.claj.api.ClajPinger
- run() - Method in class com.xpdustry.claj.api.net.ProxyClient
- runInfoFailed(Exception) - Method in class com.xpdustry.claj.api.ClajPinger
- runInfoNotFound() - Method in class com.xpdustry.claj.api.ClajPinger
- runInfoSuccess(long, boolean, ClajType, int, int, ByteBuffer) - Method in class com.xpdustry.claj.api.ClajPinger
- runJoinDenied(RejectReason) - Method in class com.xpdustry.claj.api.ClajPinger
- runJoinFailed(Exception) - Method in class com.xpdustry.claj.api.ClajPinger
- runJoinSuccess() - Method in class com.xpdustry.claj.api.ClajPinger
- runListFailed(Exception) - Method in class com.xpdustry.claj.api.ClajPinger
- runListInfo(LongMap, ObjectSet) - Method in class com.xpdustry.claj.api.ClajPinger
- runPingFailed(Exception) - Method in class com.xpdustry.claj.api.ClajPinger
- runPingSuccess(int) - Method in class com.xpdustry.claj.api.ClajPinger
- runRoomClose(CloseReason) - Method in class com.xpdustry.claj.api.ClajProxy
-
This also resets room id and removes callbacks.
- runRoomCreated(long) - Method in class com.xpdustry.claj.api.ClajProxy
S
- SCHEME - Static variable in class com.xpdustry.claj.api.ClajLink
- selector - Variable in class com.xpdustry.claj.api.ClajPinger
- send(VirtualConnection, Object, boolean) - Method in class com.xpdustry.claj.api.net.ProxyClient
- send(Object) - Method in class com.xpdustry.claj.api.net.ProxyClient
- send(Object, boolean) - Method in class com.xpdustry.claj.api.net.ProxyClient
- sendTCP(Object) - Method in class com.xpdustry.claj.api.net.ProxyClient
-
Because all
VirtualConnections shares the same tcp buffer, it can be filled quickly. - sendTCP(Object) - Method in class com.xpdustry.claj.api.net.VirtualConnection
- sendUDP(Object) - Method in class com.xpdustry.claj.api.net.VirtualConnection
- Serializer() - Constructor for class com.xpdustry.claj.api.ClajPinger.Serializer
- serverRooms(String, int, Cons, Cons) - Method in class com.xpdustry.claj.api.Claj
- serverRooms(String, int, Cons, Cons) - Method in class com.xpdustry.claj.api.ClajPingerManager
- set(ClajPinger) - Method in class com.xpdustry.claj.api.ClajPinger.Serializer
- setCancelState(boolean) - Method in class com.xpdustry.claj.api.ClajPinger
- setConnected0(boolean) - Method in class com.xpdustry.claj.api.net.VirtualConnection
- setDefaultConfiguration(boolean, boolean, short, boolean) - Method in class com.xpdustry.claj.api.ClajProxy
- setIdleThreshold(float) - Method in class com.xpdustry.claj.api.net.VirtualConnection
- setKeepAliveTCP(int) - Method in class com.xpdustry.claj.api.net.VirtualConnection
- setName(String) - Method in class com.xpdustry.claj.api.net.VirtualConnection
- setRequestTimeout(int) - Method in class com.xpdustry.claj.api.ClajPinger
- setTimeout(int) - Method in class com.xpdustry.claj.api.net.VirtualConnection
- showMessage(ClajProxy, MessageType) - Method in interface com.xpdustry.claj.api.ClajProvider
- showPopup(ClajProxy, String) - Method in interface com.xpdustry.claj.api.ClajProvider
- showTextMessage(ClajProxy, String) - Method in interface com.xpdustry.claj.api.ClajProvider
- shutdown - Variable in class com.xpdustry.claj.api.ClajPinger
- shutdown - Variable in class com.xpdustry.claj.api.net.ProxyClient
- start() - Method in class com.xpdustry.claj.api.ClajPinger
- start() - Method in class com.xpdustry.claj.api.net.ProxyClient
- starting - Variable in class com.xpdustry.claj.api.ClajPinger
- starting - Variable in class com.xpdustry.claj.api.net.ProxyClient
- state - Variable in class com.xpdustry.claj.api.ClajRoom
-
Only presents if the room is public and the server has retrieved his state.
- stop() - Method in class com.xpdustry.claj.api.ClajPinger
- stop() - Method in class com.xpdustry.claj.api.ClajPingerManager
-
Stop all pingers and cancel the queue.
- stop() - Method in class com.xpdustry.claj.api.ClajProxyManager
-
Close all rooms and stop all proxies.
- stop() - Method in class com.xpdustry.claj.api.net.ProxyClient
- stopPingers() - Method in class com.xpdustry.claj.api.Claj
- stopProxies() - Method in class com.xpdustry.claj.api.Claj
- stopTask(String, Throwable) - Method in class com.xpdustry.claj.api.ClajPinger
- submit(int, Cons2) - Method in class com.xpdustry.claj.api.ClajPingerManager
- submit(Cons2) - Method in class com.xpdustry.claj.api.ClajPingerManager
-
Queue the task if all pingers are busy.
T
- threads - Variable in class com.xpdustry.claj.api.ClajPingerManager
- threads - Variable in class com.xpdustry.claj.api.ClajProxyManager
- time - Variable in class com.xpdustry.claj.api.ClajPinger
- timeout - Variable in class com.xpdustry.claj.api.ClajPinger
- timeout() - Method in class com.xpdustry.claj.api.ClajPinger
- toString() - Method in class com.xpdustry.claj.api.ClajLink
- toString() - Method in class com.xpdustry.claj.api.net.VirtualConnection
- type - Variable in class com.xpdustry.claj.api.ClajRoom
-
Room implementation type.
U
- UNCREATED_ROOM - Static variable in class com.xpdustry.claj.api.ClajProxy
-
Constant value saying that no room is created.
- update(int) - Method in class com.xpdustry.claj.api.ClajPinger
- update(int) - Method in class com.xpdustry.claj.api.net.ProxyClient
- updateIdle() - Method in class com.xpdustry.claj.api.net.ProxyClient
-
Tries to mimic connection idling.
- updateIdle() - Method in class com.xpdustry.claj.api.net.VirtualConnection
- updatePing() - Method in class com.xpdustry.claj.api.net.ProxyClient
- updateReturnTripTime() - Method in class com.xpdustry.claj.api.net.VirtualConnection
- uri - Variable in class com.xpdustry.claj.api.ClajLink
V
- VirtualConnection - Class in com.xpdustry.claj.api.net
-
A connection that doesn't have a socket and buffer behind.
- VirtualConnection(ProxyClient, int, long) - Constructor for class com.xpdustry.claj.api.net.VirtualConnection
W
- workers - Variable in class com.xpdustry.claj.api.ClajPingerManager
- workers - Variable in class com.xpdustry.claj.api.ClajProxyManager
- write - Variable in class com.xpdustry.claj.api.ClajClientSerializer
- write(ByteBuffer, Object) - Method in class com.xpdustry.claj.api.ClajClientSerializer
- writeBufferThreshold - Variable in class com.xpdustry.claj.api.net.ProxyClient
-
Packet queue to avoid a buffer overflow.
- writeClaj(ByteBuffer, Packet) - Method in class com.xpdustry.claj.api.ClajClientSerializer
- writeRoomState(ClajProxy) - Method in interface com.xpdustry.claj.api.ClajProvider
-
The actual room state, in an encoded form.
All Classes and Interfaces|All Packages|Constant Field Values