A B C E F G I L M N O P R S T V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addArgument(Object) - Method in class com.ensarsarajcic.neovim.java.corerpc.message.NotificationMessage.Builder
-
Adds a single argument
- addArgument(Object) - Method in class com.ensarsarajcic.neovim.java.corerpc.message.RequestMessage.Builder
-
Adds a single argument
- addArguments(ArrayList<?>) - Method in class com.ensarsarajcic.neovim.java.corerpc.message.NotificationMessage.Builder
-
Adds all arguments provided
- addArguments(ArrayList<?>) - Method in class com.ensarsarajcic.neovim.java.corerpc.message.RequestMessage.Builder
-
Adds all arguments provided
- addNotificationCallback(RpcListener.NotificationCallback) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.PackStream
-
Adds a new
RpcListener.NotificationCallback
perRpcStreamer.addNotificationCallback(RpcListener.NotificationCallback)
specification - addNotificationCallback(RpcListener.NotificationCallback) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient
-
Calls underlying
RpcStreamer
- addNotificationCallback(RpcListener.NotificationCallback) - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcStreamer
-
Adds a new
RpcListener.NotificationCallback
, if it is not already added It will stay attached and receive all notifications untilRpcStreamer.removeNotificationCallback(RpcListener.NotificationCallback)
is called with exact same callback - addRequestCallback(RpcListener.RequestCallback) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.PackStream
-
Adds a new
RpcListener.RequestCallback
perRpcStreamer.addRequestCallback(RpcListener.RequestCallback)
specification - addRequestCallback(RpcListener.RequestCallback) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient
-
Calls underlying
RpcStreamer
- addRequestCallback(RpcListener.RequestCallback) - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcStreamer
-
Adds a new
RpcListener.RequestCallback
, if it is not already added It will stay attached and receive all requests untilRpcStreamer.removeRequestCallback(RpcListener.RequestCallback)
is called with exact same callback - asInt() - Method in enum com.ensarsarajcic.neovim.java.corerpc.message.MessageType
-
Gets integer representation of this
MessageType
- AsyncRpcSender - Class in com.ensarsarajcic.neovim.java.corerpc.client
-
Implementation of
RpcSender
utilizingExecutorService
for asynchronous work - AsyncRpcSender(ExecutorService, ObjectMapper) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.client.AsyncRpcSender
-
Creates a new
AsyncRpcSender
with givenObjectMapper
for mapping requests usingExecutorService
for background work - attach(RpcConnection) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.PackStream
-
Prepares for writing to outgoing stream and prepares for reading from input stream Sets up listeners on the input stream, so that current and any new request/response/notification callbacks may be called - prepares the underlying
RpcListener
Also prepares for writing messages - prepares the underlyingRpcSender
- attach(RpcConnection) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient
-
Calls underlying
RpcStreamer
- attach(RpcConnection) - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcStreamer
-
Attaches to given
RpcConnection
Connects callbacks to its incoming stream and prepares for writing to outgoing stream - attach(OutputStream) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.AsyncRpcSender
-
Attaches to
OutputStream
Required for usingAsyncRpcSender.send(Message)
- attach(OutputStream) - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcSender
-
Attaches this
RpcSender
to aOutputStream
ThatOutputStream
can (and should) then be used to communicate (for sending data)
B
- BackgroundRpcListener - Class in com.ensarsarajcic.neovim.java.corerpc.client
-
Implementation of
RpcListener
utilizingExecutorService
for background work - BackgroundRpcListener(ExecutorService, ObjectMapper) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.client.BackgroundRpcListener
-
Creates a new
BackgroundRpcListener
usingExecutorService
for background work and givenObjectMapper
for mapping responses - build() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder
-
Creates a new
RpcClient
instance with defaultRpcStreamer
,RpcSender
andRpcListener
with custom dependencies for those (ExecutorService
andObjectMapper
) - build() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder.CustomRpcListenerBuilder
-
Creates a new
RpcClient
instance with defaultRpcStreamer
, defaultRpcSender
with givenObjectMapper
andExecutorService
, together with customRpcListener
- build() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder.CustomRpcSenderBuilder
-
Creates a new
RpcClient
instance with defaultRpcStreamer
, defaultRpcListener
with givenObjectMapper
andExecutorService
, together with customRpcSender
- build() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder.CustomRpcStreamerBuilder
-
Creates a new
RpcClient
instance with givenRpcStreamer
- build() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder.DefaultRpcStreamerFullBuilder
-
Creates a new
RpcClient
instance with defaultRpcStreamer
and given sender and listener - build() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.NotificationMessage.Builder
-
Creates a new
NotificationMessage
using arguments added to this instance - build() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.RequestMessage.Builder
-
Creates a new
RequestMessage
using arguments added to this instance - build() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.ResponseMessage.Builder
-
Creates a new
ResponseMessage
using arguments added to this instance - Builder() - Constructor for class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder
-
Creates a default
RpcClient
builder If build is called right after this, default instance will be created - Builder(int, RpcError, Object) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.message.ResponseMessage.Builder
-
Prepares new builder for error
ResponseMessage
with an error and a result Both may be changed later This constructor is meant for use by deserializer - Builder(RpcError) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.message.ResponseMessage.Builder
-
Prepares new builder for error
ResponseMessage
with an error Result may be added later, but is probably a bad thing to do Error may be changed later - Builder(Object) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.message.ResponseMessage.Builder
-
Prepares new builder for successful
ResponseMessage
with a result Result may be changed later Error may be added later, but is probably a bad thing to do - Builder(String) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.message.NotificationMessage.Builder
-
Creates a new
NotificationMessage.Builder
with just a name. - Builder(String) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.message.RequestMessage.Builder
-
Prepares new builder for
RequestMessage
with just a method name. - Builder(String, ArrayList<?>) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.message.NotificationMessage.Builder
-
Creates a new
NotificationMessage.Builder
with name and arguments More arguments may be added - Builder(String, ArrayList<?>) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.message.RequestMessage.Builder
-
Prepares new builder for
RequestMessage
with method name and arguments.
C
- close() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.ProcessRpcConnection
-
Closes connection and optionally kills the underlying process if
ProcessRpcConnection.killProcessOnClose
is true IfProcessRpcConnection.killProcessOnClose
is true, communication is no longer possible Otherwise, communication may proceed, because it is a no-op in that case - close() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.StdIoRpcConnection
- close() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.TcpSocketRpcConnection
-
Closes underlying
Socket
Communication is no longer possible after this call - com.ensarsarajcic.neovim.java.corerpc.client - package com.ensarsarajcic.neovim.java.corerpc.client
- com.ensarsarajcic.neovim.java.corerpc.message - package com.ensarsarajcic.neovim.java.corerpc.message
- corerpc - module corerpc
- createDefaultAsyncInstance() - Static method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient
-
Creates a default instance of
RpcClient
based on: *PackStream
for two-way communication *AsyncRpcSender
for sending data *BackgroundRpcListener
for receiving data
E
- exception(String) - Static method in class com.ensarsarajcic.neovim.java.corerpc.message.RpcError
- EXCEPTION - Static variable in class com.ensarsarajcic.neovim.java.corerpc.message.RpcError.Type
F
- fromInt(int) - Static method in enum com.ensarsarajcic.neovim.java.corerpc.message.MessageType
-
Transforms passed integer into
MessageType
- fromInt(int) - Static method in class com.ensarsarajcic.neovim.java.corerpc.message.RpcError.Type
G
- getArguments() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.NotificationMessage
- getArguments() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.RequestMessage
- getDefaultAsyncInstance() - Static method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient
-
Takes a default instance (shared - singleton) of
RpcClient
- getError() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.ResponseMessage
- getId() - Method in interface com.ensarsarajcic.neovim.java.corerpc.message.IdentifiableMessage
-
Get ID of the message
- getId() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.RequestMessage
- getId() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.ResponseMessage
- getId() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.RpcError
- getId() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.RpcError.Type
- getIncomingStream() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.ProcessRpcConnection
-
Provides input stream of underlying process
- getIncomingStream() - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcConnection
-
Incoming data stream (coming from other participant)
- getIncomingStream() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.StdIoRpcConnection
- getIncomingStream() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.TcpSocketRpcConnection
-
Gets the
InputStream
of the underlyingSocket
- getMessage() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.RpcError
- getMethod() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.RequestMessage
- getName() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.NotificationMessage
- getOutgoingStream() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.ProcessRpcConnection
-
Provides ouput stream of underlying process
- getOutgoingStream() - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcConnection
-
Outgoing data stream (going to other participant)
- getOutgoingStream() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.StdIoRpcConnection
- getOutgoingStream() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.TcpSocketRpcConnection
-
Gets the
OutputStream
of the underlyingSocket
- getResult() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.ResponseMessage
- getType() - Method in interface com.ensarsarajcic.neovim.java.corerpc.message.Message
-
Returns the type of message
- getType() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.NotificationMessage
- getType() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.RequestMessage
- getType() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.ResponseMessage
- getType() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.RpcError
I
- IdentifiableMessage - Interface in com.ensarsarajcic.neovim.java.corerpc.message
-
Defines a
Message
which has an ID ID has to be stored, since these messages usually receive a response (unless they are response themselves)
L
- listenForNotifications(RpcListener.NotificationCallback) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.BackgroundRpcListener
-
Prepares a
RpcListener.NotificationCallback
It will be notified for any notification that comes through to this listener - listenForNotifications(RpcListener.NotificationCallback) - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcListener
-
Provides a way to listen for notifications
- listenForRequests(RpcListener.RequestCallback) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.BackgroundRpcListener
-
Prepares a
RpcListener.RequestCallback
It will be notified for any request that comes through to this listener - listenForRequests(RpcListener.RequestCallback) - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcListener
-
Provides a way to listen for requests
- listenForResponse(int, RpcListener.ResponseCallback) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.BackgroundRpcListener
-
Prepares a
RpcListener.ResponseCallback
Once a response with message id equal to the id passed to this method comes, theRpcListener.ResponseCallback
will be notified. - listenForResponse(int, RpcListener.ResponseCallback) - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcListener
-
Provides a way to listen for certain response (that has passed id) The id should be the same id as request and that is used to match up request and response
- log - Static variable in class com.ensarsarajcic.neovim.java.corerpc.client.BackgroundRpcListener
- log - Static variable in class com.ensarsarajcic.neovim.java.corerpc.client.PackStream
- log - Static variable in class com.ensarsarajcic.neovim.java.corerpc.client.ProcessRpcConnection
- log - Static variable in class com.ensarsarajcic.neovim.java.corerpc.client.StdIoRpcConnection
- log - Static variable in class com.ensarsarajcic.neovim.java.corerpc.client.TcpSocketRpcConnection
M
- Message - Interface in com.ensarsarajcic.neovim.java.corerpc.message
-
Defines a single message in RPC communication
- MessageIdGenerator - Interface in com.ensarsarajcic.neovim.java.corerpc.message
-
Represents a generator for ids for messages.
- MessageType - Enum in com.ensarsarajcic.neovim.java.corerpc.message
-
Defines types used in RPC communication
N
- nextId() - Method in interface com.ensarsarajcic.neovim.java.corerpc.message.MessageIdGenerator
-
Get next id.
- nextId() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.SequentialMessageIdGenerator
- NOTIFICATION - com.ensarsarajcic.neovim.java.corerpc.message.MessageType
- NotificationMessage - Class in com.ensarsarajcic.neovim.java.corerpc.message
-
Defines a notification Notifications should not be considered high priority and are not expected to block execution They should be handled when possible
- NotificationMessage(String, ArrayList<Object>) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.message.NotificationMessage
-
Creates a new
NotificationMessage
This should not be used outside this library, since it represents incoming notifications - NotificationMessage.Builder - Class in com.ensarsarajcic.neovim.java.corerpc.message
-
Builder for
NotificationMessage
just for convention Since all otherMessage
implementations contain builder - notificationReceived(NotificationMessage) - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcListener.NotificationCallback
-
Notifies callback that notification has arrived
O
- other(int, String) - Static method in class com.ensarsarajcic.neovim.java.corerpc.message.RpcError
- other(RpcError.Type, String) - Static method in class com.ensarsarajcic.neovim.java.corerpc.message.RpcError
P
- PackStream - Class in com.ensarsarajcic.neovim.java.corerpc.client
-
Two-way msgpack stream that wraps reading/writing bytes and exposes an interface for sending
Message
- PackStream(RpcSender, RpcListener) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.client.PackStream
-
Creates a new
PackStream
with givenRpcSender
for sending messages and anRpcListener
for listening for incoming requests, responses and notifications UsesSequentialMessageIdGenerator
forMessageIdGenerator
- PackStream(RpcSender, RpcListener, MessageIdGenerator) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.client.PackStream
-
Creates a new
PackStream
with givenRpcSender
for sending messages and anRpcListener
for listening for incoming requests, responses and notifications - ProcessRpcConnection - Class in com.ensarsarajcic.neovim.java.corerpc.client
-
Implementation of
RpcConnection
providing streams of aProcess
- ProcessRpcConnection(Process) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.client.ProcessRpcConnection
-
Creates a new
ProcessRpcConnection
based on aProcess
's input and output streams By default does not kill process when connection is closed - ProcessRpcConnection(Process, boolean) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.client.ProcessRpcConnection
-
Creates a new
ProcessRpcConnection
based on aProcess
's input and output streams
R
- removeNotificationCallback(RpcListener.NotificationCallback) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.PackStream
-
Removes a
RpcListener.NotificationCallback
perRpcStreamer.removeNotificationCallback(RpcListener.NotificationCallback)
specification - removeNotificationCallback(RpcListener.NotificationCallback) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient
-
Calls underlying
RpcStreamer
- removeNotificationCallback(RpcListener.NotificationCallback) - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcStreamer
-
Removes a
RpcListener.NotificationCallback
, if it was added before It does so by a reference, meaning it has to be exact same callback that was added before usingRpcStreamer.addNotificationCallback(RpcListener.NotificationCallback)
- removeRequestCallback(RpcListener.RequestCallback) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.PackStream
-
Removes a
RpcListener.RequestCallback
perRpcStreamer.removeRequestCallback(RpcListener.RequestCallback)
specification - removeRequestCallback(RpcListener.RequestCallback) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient
-
Calls underlying
RpcStreamer
- removeRequestCallback(RpcListener.RequestCallback) - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcStreamer
-
Removes a
RpcListener.RequestCallback
, if it was added before It does so by a reference, meaning it has to be exact same callback that was added before usingRpcStreamer.addRequestCallback(RpcListener.RequestCallback)
- REQUEST - com.ensarsarajcic.neovim.java.corerpc.message.MessageType
- RequestMessage - Class in com.ensarsarajcic.neovim.java.corerpc.message
-
Defines a request (either made by client or server) Requests are expected to be blocking! Response is expected and they should be handled immediately.
- RequestMessage.Builder - Class in com.ensarsarajcic.neovim.java.corerpc.message
-
Builder for
RequestMessage
Outside users should not useRequestMessage.Builder.withId(int)
method. - requestReceived(RequestMessage) - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcListener.RequestCallback
-
Notifies callback that request has arrived
- RESPONSE - com.ensarsarajcic.neovim.java.corerpc.message.MessageType
- ResponseMessage - Class in com.ensarsarajcic.neovim.java.corerpc.message
-
Defines a response
- ResponseMessage(int, RpcError, Object) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.message.ResponseMessage
-
Creates a new
ResponseMessage
- ResponseMessage.Builder - Class in com.ensarsarajcic.neovim.java.corerpc.message
-
Builder for
ResponseMessage
for convention Outside users should not useResponseMessage.Builder.withId(int)
method. - responseReceived(int, ResponseMessage) - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcListener.ResponseCallback
-
Notifies callback that response has arrived
- RpcClient - Class in com.ensarsarajcic.neovim.java.corerpc.client
-
Wrapper around
RpcStreamer
This class should be used for communication. - RpcClient.Builder - Class in com.ensarsarajcic.neovim.java.corerpc.client
-
Builder for
RpcClient
to simplify configuration Everything is set to default at the start and following may be changed: * UnderlyingRpcStreamer
* If defaultRpcStreamer
is used,RpcSender
andRpcListener
may be changed * If defaultRpcSender
orRpcListener
are used,ObjectMapper
andExecutorService
can be changed - RpcClient.Builder.CustomRpcListenerBuilder - Class in com.ensarsarajcic.neovim.java.corerpc.client
-
Builder used when
RpcListener
is changed - RpcClient.Builder.CustomRpcSenderBuilder - Class in com.ensarsarajcic.neovim.java.corerpc.client
-
Builder used when
RpcSender
is changed - RpcClient.Builder.CustomRpcStreamerBuilder - Class in com.ensarsarajcic.neovim.java.corerpc.client
-
Builder used when
RpcStreamer
is changed - RpcClient.Builder.DefaultRpcStreamerFullBuilder - Class in com.ensarsarajcic.neovim.java.corerpc.client
-
Builder used when both
RpcSender
andRpcListener
are changed - RpcConnection - Interface in com.ensarsarajcic.neovim.java.corerpc.client
-
Represents a bi-directional RPC connection (it may represent any connection, due to it being very generic)
- RpcError - Class in com.ensarsarajcic.neovim.java.corerpc.message
-
Class defining an error used in RPC communication It is not an error in the communication itself, rather an error that is sent by applications communicating to indicate an error (bad request, bad payload, etc.)
- RpcError(int, String) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.message.RpcError
- RpcError(RpcError.Type, String) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.message.RpcError
- RpcError.Type - Class in com.ensarsarajcic.neovim.java.corerpc.message
- RpcListener - Interface in com.ensarsarajcic.neovim.java.corerpc.client
-
Represents a RPC communication listener It should attach to communication streams and notify when certain notifications and responses occur It should all be run on a separate thread to prevent blocking
- RpcListener.NotificationCallback - Interface in com.ensarsarajcic.neovim.java.corerpc.client
-
Callback for
NotificationMessage
It may be called at any time and is not usually paired with a request - RpcListener.RequestCallback - Interface in com.ensarsarajcic.neovim.java.corerpc.client
-
Callback for
RequestMessage
It may be called at any time and is not usually paired with a request - RpcListener.ResponseCallback - Interface in com.ensarsarajcic.neovim.java.corerpc.client
-
Callback for
ResponseMessage
object It should usually be paired with a request and this should be used to take the response - RpcSender - Interface in com.ensarsarajcic.neovim.java.corerpc.client
-
Represents a RPC communication sender (writer) It should provide interface for sending messages Message sending should occur on a separate thread
- RpcStreamer - Interface in com.ensarsarajcic.neovim.java.corerpc.client
-
Interface defining a two way RPC communication stream Implementations of this should be used for communication since it covers both input and output
S
- send(Message) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.AsyncRpcSender
-
Sends messages per
send(Message)
specification Order of execution is handled byExecutorService
, this class just submits the task of actual serializing and writing to stream - send(Message) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.PackStream
-
Implemented per
RpcStreamer.send(Message)
specification Passes the message down to underlyingRpcSender
, without callback - send(Message) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient
-
Calls underlying
RpcStreamer
- send(Message) - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcSender
-
Sends a message to attached
OutputStream
Implementations need to implement it according to interface (requiring attachment prior to communication) - send(Message) - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcStreamer
-
Sends a message to attached
RpcConnection
- send(RequestMessage.Builder) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.PackStream
-
Implemented per
RpcStreamer.send(RequestMessage.Builder)
specification Passes the message down to underlyingRpcSender
, without callback - send(RequestMessage.Builder) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient
-
Calls underlying
RpcStreamer
- send(RequestMessage.Builder) - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcStreamer
-
Specific version of
RpcStreamer.send(Message)
method for requests It takes a builder instead of a message, to ensure ID is added before sending - send(RequestMessage.Builder, RpcListener.ResponseCallback) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.PackStream
-
Implemented per
RpcStreamer.send(RequestMessage.Builder, RpcListener.ResponseCallback)
specification Passes the message down to underlyingRpcSender
, with callback First id for the message is generated usingMessageIdGenerator
, callback for that id is prepared onRpcListener
and then message is send usingRpcSender
- send(RequestMessage.Builder, RpcListener.ResponseCallback) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient
-
Calls underlying
RpcStreamer
- send(RequestMessage.Builder, RpcListener.ResponseCallback) - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcStreamer
-
Specific version of
RpcStreamer.send(Message)
method which can also optionally take aRpcListener.ResponseCallback
to be notified when response comes back It takes a builder instead of a message, to ensure ID is added before sending - SequentialMessageIdGenerator - Class in com.ensarsarajcic.neovim.java.corerpc.message
-
Simple implementation of
MessageIdGenerator
creating IDs using anAtomicInteger
- SequentialMessageIdGenerator() - Constructor for class com.ensarsarajcic.neovim.java.corerpc.message.SequentialMessageIdGenerator
- start(InputStream) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.BackgroundRpcListener
-
Starts listening on given input stream on background thread (using given executor service)
- start(InputStream) - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcListener
-
Starts listening on given
InputStream
All events will be passed to callbacks (if any are registered) - StdIoRpcConnection - Class in com.ensarsarajcic.neovim.java.corerpc.client
-
Implementation of
RpcConnection
using stdio streams - StdIoRpcConnection() - Constructor for class com.ensarsarajcic.neovim.java.corerpc.client.StdIoRpcConnection
-
Creates a new
StdIoRpcConnection
based on system stdio - stop() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.AsyncRpcSender
-
Stops the
ExecutorService
. - stop() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.BackgroundRpcListener
-
Stops current listener by killing the task submitted to executor If listener is currently not started, this method has no effect
- stop() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.PackStream
-
Stops the underlying
RpcListener
It is not expected for implementation to be reusable after calling this method! - stop() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient
-
Stops the underlying
RpcListener
It is not expected for implementation to be reusable after calling this method! - stop() - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcListener
-
Stops listening It is not expected for implementation to be reusable after calling this method!
- stop() - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcSender
-
Stops the sender
- stop() - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RpcStreamer
-
Stops the underlying
RpcListener
It is not expected for implementation to be reusable after calling this method!
T
- TcpSocketRpcConnection - Class in com.ensarsarajcic.neovim.java.corerpc.client
-
Simple implementation of
RpcConnection
based on a TCPSocket
- TcpSocketRpcConnection(Socket) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.client.TcpSocketRpcConnection
-
Creates a new
TcpSocketRpcConnection
based on passedSocket
It uses input and output streams of givenSocket
to communicate - toString() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.ProcessRpcConnection
- toString() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.StdIoRpcConnection
- toString() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.TcpSocketRpcConnection
- toString() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.NotificationMessage
- toString() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.RequestMessage
- toString() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.ResponseMessage
- toString() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.RpcError
- toString() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.RpcError.Type
- Type(int) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.message.RpcError.Type
V
- validation(String) - Static method in class com.ensarsarajcic.neovim.java.corerpc.message.RpcError
- VALIDATION - Static variable in class com.ensarsarajcic.neovim.java.corerpc.message.RpcError.Type
- valueOf(String) - Static method in enum com.ensarsarajcic.neovim.java.corerpc.message.MessageType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.ensarsarajcic.neovim.java.corerpc.message.MessageType
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- withError(RpcError) - Method in class com.ensarsarajcic.neovim.java.corerpc.message.ResponseMessage.Builder
-
Adds (or changes) error to the message.
- withExecutorService(ExecutorService) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder.CustomRpcListenerBuilder
-
Changes
ExecutorService
used by defaultRpcSender
with instance given - withExecutorService(ExecutorService) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder.CustomRpcSenderBuilder
-
Changes
ExecutorService
used by defaultRpcListener
with instance given - withExecutorService(ExecutorService) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder
-
Changes
ExecutorService
used by defaultRpcListener
with instance given - withId(int) - Method in class com.ensarsarajcic.neovim.java.corerpc.message.RequestMessage.Builder
-
Adds id to the message.
- withId(int) - Method in class com.ensarsarajcic.neovim.java.corerpc.message.ResponseMessage.Builder
-
Adds id to the message.
- withObjectMapper(ObjectMapper) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder.CustomRpcListenerBuilder
-
Changes
ObjectMapper
used by defaultRpcSender
with instance given - withObjectMapper(ObjectMapper) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder.CustomRpcSenderBuilder
-
Changes
ObjectMapper
used by defaultRpcListener
with instance given - withObjectMapper(ObjectMapper) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder
-
Changes
ObjectMapper
used by defaultRpcListener
with instance given - withResult(Object) - Method in class com.ensarsarajcic.neovim.java.corerpc.message.ResponseMessage.Builder
-
Adds (or changes) result to the message.
- withRpcListener(RpcListener) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder.CustomRpcListenerBuilder
-
Changes
RpcListener
with instance given - withRpcListener(RpcListener) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder.CustomRpcSenderBuilder
-
Changes default
RpcListener
with instance given After this change, defaultRpcListener
and its dependencies are discarded - withRpcListener(RpcListener) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder.DefaultRpcStreamerFullBuilder
-
Changes default
RpcListener
with the one given - withRpcListener(RpcListener) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder
-
Changes default
RpcListener
with the one given After this change, defaultRpcStreamer
is used and its dependencies may be changed - withRpcSender(RpcSender) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder.CustomRpcListenerBuilder
- withRpcSender(RpcSender) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder.CustomRpcSenderBuilder
-
Changes
RpcSender
with instance given - withRpcSender(RpcSender) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder.DefaultRpcStreamerFullBuilder
-
Changes default
RpcSender
with the one given - withRpcSender(RpcSender) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder
-
Changes default
RpcSender
with the one given After this change, defaultRpcStreamer
is used and its dependencies may be changed - withRpcSenderAndListener(RpcSender, RpcListener) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder
-
Changes default
RpcListener
andRpcSender
with the ones given After this change, defaultRpcStreamer
is used and its dependencies may be changed - withRpcStreamer(RpcStreamer) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RpcClient.Builder
-
Changes default
RpcStreamer
with the one given After this change is made, dependencies of the defaultRpcStreamer
can not be changed
All Classes All Packages