- withConnectionAddedCallbacks(Iterable<Consumer<Connection<T>>>) - Method in class com.jenjinstudios.io.server.ServerBuilder
-
Build a Server which will execute the given callbacks when a Connection is added.
- withConnectionAddedCallbacks(Consumer<Connection<T>>...) - Method in class com.jenjinstudios.io.server.ServerBuilder
-
Build a Server which will execute the given callbacks when a Connection is added.
- withConnectionRemovedCallbacks(Iterable<Consumer<Connection<T>>>) - Method in class com.jenjinstudios.io.server.ServerBuilder
-
Build a Server which will execute the given callbacks when a Connection is removed.
- withConnectionRemovedCallbacks(Consumer<Connection<T>>...) - Method in class com.jenjinstudios.io.server.ServerBuilder
-
Build a Server which will execute the given callbacks when a Connection is removed.
- withContextualTasks(Consumer<T>...) - Method in class com.jenjinstudios.io.connection.ConnectionBuilder
-
Build a connection that includes the given contextual task to be executed synchronously with message execution.
- withContextualTasks(BiConsumer<Server, T>...) - Method in class com.jenjinstudios.io.server.ServerBuilder
-
Build a Server which will execute the given tasks each time a Connection executes its contextual tasks.
- withContextualTasks(Iterable<BiConsumer<Server, T>>) - Method in class com.jenjinstudios.io.server.ServerBuilder
-
Build a Server which will execute the given tasks each time a Connection executes its contextual tasks.
- withErrorCallback(BiConsumer<Connection<T>, Throwable>) - Method in class com.jenjinstudios.io.connection.ConnectionBuilder
-
Build a connection with the given error callback function.
- withExecutionContextFactory(ExecutionContextFactory<T>) - Method in class com.jenjinstudios.io.connection.ConnectionBuilder
-
Build a connection with the given ExecutionContext.
- withMessageIOFactory(MessageIOFactory) - Method in class com.jenjinstudios.io.connection.ConnectionBuilder
-
Use the given MessageIOFactory to create MessageReader and MessageWriter instances from Java Input and Output
streams.
- withMessageReaderFactory(MessageReaderFactory) - Method in class com.jenjinstudios.io.connection.ConnectionBuilder
-
Use the specified MessageReaderFactory to build a MessageReader from any InputStreams.
- withMessageWriterFactory(MessageWriterFactory) - Method in class com.jenjinstudios.io.connection.ConnectionBuilder
-
Use the specified MessageWriterFactory to build a MessageWriter from any OutputStreams.
- withMultiConnectionBuilder(ConnectionBuilder<T>) - Method in class com.jenjinstudios.io.server.ServerBuilder
-
Build a Server which will use the given ReusableConnectionBuilder to build new connections.
- withRecurringTaskFactories(RecurringTaskFactory<T>...) - Method in class com.jenjinstudios.io.connection.ConnectionBuilder
-
Specify factories which generate recurring tasks.
- withRecurringTasks(RecurringTask<T>...) - Method in class com.jenjinstudios.io.connection.ConnectionBuilder
-
Build a connection that include the given recurring tasks; these tasks are executed synchronously with message
execution, and at regular (although undefined) intervals.
- withServerSocket(ServerSocket) - Method in class com.jenjinstudios.io.server.ServerBuilder
-
Build a Server using the given ServerSocket.
- withShutdownCallbacks(Consumer<Connection<T>>...) - Method in class com.jenjinstudios.io.connection.ConnectionBuilder
-
Build a connection that includes the given contextual task to be executed synchronously with message execution.
- withShutdownCallbacks(Iterable<Consumer<Server<T>>>) - Method in class com.jenjinstudios.io.server.ServerBuilder
-
Build a Server which will execute the given callbacks after shutdown.
- withShutdownCallbacks(Consumer<Server<T>>...) - Method in class com.jenjinstudios.io.server.ServerBuilder
-
Build a Server which will execute the given callbacks after shutdown.
- withStartupCallbacks(Iterable<Consumer<Server<T>>>) - Method in class com.jenjinstudios.io.server.ServerBuilder
-
Build a Server which will execute the given callbacks after startup.
- withStartupCallbacks(Consumer<Server<T>>...) - Method in class com.jenjinstudios.io.server.ServerBuilder
-
Build a Server which will execute the given callbacks after startup.
- write(Message) - Method in interface com.jenjinstudios.io.MessageWriter
-
Write the given message to the backing output stream.
- write(Message) - Method in class com.jenjinstudios.io.serialization.GsonMessageWriter
-
- WriteTask<T extends ExecutionContext> - Class in com.jenjinstudios.io.concurrency
-
Writes messages from the outgoing list in the MessageQueue.
- WriteTask(MessageQueue<T>, MessageWriter) - Constructor for class com.jenjinstudios.io.concurrency.WriteTask
-
Construct a new WriteTask that will send messages from the given MessageQueue via the given MessageWriter.