Class RemoteObjectProvider<T>
java.lang.Object
septogeddon.pluginquery.library.remote.RemoteObjectProvider<T>
- Type Parameters:
T
-
- Direct Known Subclasses:
BungeeRemoteObjectMessenger
,SpigotRemoteObjectMessenger
,VelocityRemoteObjectMessenger
Provide Object to all active connections
- Author:
- Thito Yalasatria Sunarya
-
Constructor Summary
ConstructorDescriptionRemoteObjectProvider
(QueryMessenger messenger, String channel, T object) Initialize RemoteObjectProvider for specified channel and messenger -
Method Summary
Modifier and TypeMethodDescriptionlong
Get future timeout for this providerGet the messengerGet the current class registry for this providerboolean
Get queue option for this providerprotected void
prepare()
void
setExecutorService
(ExecutorService service) Set the ThreadPool handler for this providervoid
setFutureTimeout
(long futureTimeout) Set future timeout for this handlervoid
setQueueQuery
(boolean queueQuery) Set whether the query should queue when the connection goes inactivevoid
setRegistry
(ClassRegistry registry) Set class registry for this provider.
-
Constructor Details
-
RemoteObjectProvider
Initialize RemoteObjectProvider for specified channel and messenger- Parameters:
messenger
- the messengerchannel
- the channelobject
- the object
-
-
Method Details
-
getRegistry
Get the current class registry for this provider- Returns:
-
setRegistry
Set class registry for this provider.- Parameters:
registry
- the class registry
-
prepare
protected void prepare() -
getMessenger
Get the messenger- Returns:
- messenger
-
setExecutorService
Set the ThreadPool handler for this provider- Parameters:
service
-
-
getFutureTimeout
public long getFutureTimeout()Get future timeout for this provider- Returns:
- future timeout time
-
setFutureTimeout
public void setFutureTimeout(long futureTimeout) Set future timeout for this handler- Parameters:
futureTimeout
-
-
isQueueQuery
public boolean isQueueQuery()Get queue option for this provider- Returns:
- true if its queue-enabled
-
setQueueQuery
public void setQueueQuery(boolean queueQuery) Set whether the query should queue when the connection goes inactive- Parameters:
queueQuery
-
-