public final class SocketIoServerOptions extends Object
SocketIoServer
Modifier and Type | Field and Description |
---|---|
static SocketIoServerOptions |
DEFAULT
The default options used by server.
|
Modifier and Type | Method and Description |
---|---|
SocketIoAdapter.AdapterFactory |
getAdapterFactory()
Gets the adapter factory instance.
|
long |
getConnectionTimeout()
Gets the amount of time to wait (ms) before a client without namespace is closed.
|
void |
lock()
Lock this options instance to prevent modifications.
|
static SocketIoServerOptions |
newFromDefault()
Create a new instance of
SocketIoServerOptions by copying
default options. |
SocketIoServerOptions |
setAdapterFactory(SocketIoAdapter.AdapterFactory adapterFactory)
Sets the adapter factory instance.
|
SocketIoServerOptions |
setConnectionTimeout(long connectionTimeout)
Sets the amount of time to wait (ms) before a client without namespace is closed.
|
public static final SocketIoServerOptions DEFAULT
SocketIoMemoryAdapter.Factory
public static SocketIoServerOptions newFromDefault()
SocketIoServerOptions
by copying
default options.SocketIoServerOptions
with default options.public long getConnectionTimeout()
public SocketIoServerOptions setConnectionTimeout(long connectionTimeout)
public SocketIoAdapter.AdapterFactory getAdapterFactory()
public SocketIoServerOptions setAdapterFactory(SocketIoAdapter.AdapterFactory adapterFactory) throws IllegalStateException
adapterFactory
- Adapter factory instance to set or null for default.IllegalStateException
- If instance is locked.public void lock()
Copyright © 2022. All rights reserved.