Index
A B C F G I L M N 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.NotificationCallbackperRPCStreamer.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.RequestCallbackperRPCStreamer.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
RPCSenderutilizingExecutorServicefor asynchronous work - AsyncRPCSender(ExecutorService, ObjectMapper) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.client.AsyncRPCSender
-
Creates a new
AsyncRPCSenderwith givenObjectMapperfor mapping requests usingExecutorServicefor 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
RPCListenerAlso 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
RPCConnectionConnects 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
OutputStreamRequired for usingAsyncRPCSender.send(Message) - attach(OutputStream) - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RPCSender
-
Attaches this
RPCSenderto aOutputStreamThatOutputStreamcan (and should) then be used to communicate (for sending data)
B
- BackgroundRPCListener - Class in com.ensarsarajcic.neovim.java.corerpc.client
-
Implementation of
RPCListenerutilizingExecutorServicefor background work - BackgroundRPCListener(ExecutorService, ObjectMapper) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.client.BackgroundRPCListener
-
Creates a new
BackgroundRPCListenerusingExecutorServicefor background work and givenObjectMapperfor mapping responses - build() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RPCClient.Builder
-
Creates a new
RPCClientinstance with defaultRPCStreamer,RPCSenderandRPCListenerwith custom dependencies for those (ExecutorServiceandObjectMapper) - build() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RPCClient.Builder.CustomRPCListenerBuilder
-
Creates a new
RPCClientinstance with defaultRPCStreamer, defaultRPCSenderwith givenObjectMapperandExecutorService, together with customRPCListener - build() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RPCClient.Builder.CustomRPCSenderBuilder
-
Creates a new
RPCClientinstance with defaultRPCStreamer, defaultRPCListenerwith givenObjectMapperandExecutorService, together with customRPCSender - build() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RPCClient.Builder.CustomRPCStreamerBuilder
-
Creates a new
RPCClientinstance with givenRPCStreamer - build() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RPCClient.Builder.DefaultRPCStreamerFullBuilder
-
Creates a new
RPCClientinstance with defaultRPCStreamerand given sender and listener - build() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.NotificationMessage.Builder
-
Creates a new
NotificationMessageusing arguments added to this instance - build() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.RequestMessage.Builder
-
Creates a new
RequestMessageusing arguments added to this instance - build() - Method in class com.ensarsarajcic.neovim.java.corerpc.message.ResponseMessage.Builder
-
Creates a new
ResponseMessageusing arguments added to this instance - Builder() - Constructor for class com.ensarsarajcic.neovim.java.corerpc.client.RPCClient.Builder
-
Creates a default
RPCClientbuilder 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
ResponseMessagewith 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
ResponseMessagewith 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
ResponseMessagewith 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.Builderwith just a name. - Builder(String) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.message.RequestMessage.Builder
-
Prepares new builder for
RequestMessagewith just a method name. - Builder(String, ArrayList<?>) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.message.NotificationMessage.Builder
-
Creates a new
NotificationMessage.Builderwith 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
RequestMessagewith 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.killProcessOnCloseis true IfProcessRPCConnection.killProcessOnCloseis 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.TcpSocketRPCConnection
-
Closes underlying
SocketCommunication 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
RPCClientbased on: *PackStreamfor two-way communication *AsyncRPCSenderfor sending data *BackgroundRPCListenerfor receiving data
F
- fromInt(int) - Static method in enum com.ensarsarajcic.neovim.java.corerpc.message.MessageType
-
Transforms passed integer into
MessageType
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
- 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.TcpSocketRPCConnection
-
Gets the
InputStreamof 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.TcpSocketRPCConnection
-
Gets the
OutputStreamof 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
I
- IdentifiableMessage - Interface in com.ensarsarajcic.neovim.java.corerpc.message
-
Defines a
Messagewhich 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.NotificationCallbackIt 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 This will handle all notifications and pass them to given callback These messages may safely be ignored, since notifications are not expecting a response
- listenForRequests(RPCListener.RequestCallback) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.BackgroundRPCListener
-
Prepares a
RPCListener.RequestCallbackIt 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 This will handle all requests and pass them to given callback These messages should be handled and a response should be passed back, since caller may possibly be blocked
- listenForResponse(int, RPCListener.ResponseCallback) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.BackgroundRPCListener
-
Prepares a
RPCListener.ResponseCallbackOnce a response with message id equal to the id passed to this method comes, theRPCListener.ResponseCallbackwill 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 This should handle a single response and then stop listening for given id (unless it was called again) Certain implementations may not behave this way, but it is recommended implementation
- 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.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 Contains int value used in RPC communication which represents the type
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 Format is defined as: * type as Integer * name (event name) as String * arguments as Array
- NotificationMessage(String, ArrayList<Object>) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.message.NotificationMessage
-
Creates a new
NotificationMessageThis should not be used outside this library, since it represents incoming notifications - NotificationMessage.Builder - Class in com.ensarsarajcic.neovim.java.corerpc.message
-
Builder for
NotificationMessagejust for convention Since all otherMessageimplementations contain builder This should not be used outside of library, since notifications are usually only incoming messages - notificationReceived(NotificationMessage) - Method in interface com.ensarsarajcic.neovim.java.corerpc.client.RPCListener.NotificationCallback
-
Notifies callback that notification has arrived
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
PackStreamwith givenRPCSenderfor sending messages and anRPCListenerfor listening for incoming requests, responses and notifications UsesSequentialMessageIdGeneratorforMessageIdGenerator - PackStream(RPCSender, RPCListener, MessageIdGenerator) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.client.PackStream
-
Creates a new
PackStreamwith givenRPCSenderfor sending messages and anRPCListenerfor listening for incoming requests, responses and notifications - ProcessRPCConnection - Class in com.ensarsarajcic.neovim.java.corerpc.client
-
Implementation of
RPCConnectionproviding streams of aProcess - ProcessRPCConnection(Process) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.client.ProcessRPCConnection
-
Creates a new
ProcessRPCConnectionbased 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
ProcessRPCConnectionbased on aProcess's input and output streams
R
- removeNotificationCallback(RPCListener.NotificationCallback) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.PackStream
-
Removes a
RPCListener.NotificationCallbackperRPCStreamer.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.RequestCallbackperRPCStreamer.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
RequestMessageOutside 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 Format is defined as: * type as Integer * id as Integer * error as RPCError * result
- 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
ResponseMessagefor 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
RPCStreamerThis class should be used for communication. - RPCClient.Builder - Class in com.ensarsarajcic.neovim.java.corerpc.client
-
Builder for
RPCClientto simplify configuration Everything is set to default at the start and following may be changed: * UnderlyingRPCStreamer* If defaultRPCStreameris used,RPCSenderandRPCListenermay be changed * If defaultRPCSenderorRPCListenerare used,ObjectMapperandExecutorServicecan be changed - RPCClient.Builder.CustomRPCListenerBuilder - Class in com.ensarsarajcic.neovim.java.corerpc.client
-
Builder used when
RPCListeneris changed - RPCClient.Builder.CustomRPCSenderBuilder - Class in com.ensarsarajcic.neovim.java.corerpc.client
-
Builder used when
RPCSenderis changed - RPCClient.Builder.CustomRPCStreamerBuilder - Class in com.ensarsarajcic.neovim.java.corerpc.client
-
Builder used when
RPCStreameris changed - RPCClient.Builder.DefaultRPCStreamerFullBuilder - Class in com.ensarsarajcic.neovim.java.corerpc.client
-
Builder used when both
RPCSenderandRPCListenerare 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
- 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
NotificationMessageIt may be called at any time and is not usually paired with a request It should be handled, but not with high priority, since it is not expected to be blocking - RPCListener.RequestCallback - Interface in com.ensarsarajcic.neovim.java.corerpc.client
-
Callback for
RequestMessageIt may be called at any time and is not usually paired with a request It should be handled immediately, if possible, since it is expected to be blocking and response is expected - RPCListener.ResponseCallback - Interface in com.ensarsarajcic.neovim.java.corerpc.client
-
Callback for
ResponseMessageobject 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
OutputStreamImplementations 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 onRPCListenerand 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.ResponseCallbackto 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
MessageIdGeneratorcreating 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
InputStreamAll events will be passed to callbacks (if any are registered) - 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
RPCListenerIt 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
RPCListenerIt 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
RPCListenerIt 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
RPCConnectionbased on a TCPSocket - TcpSocketRPCConnection(Socket) - Constructor for class com.ensarsarajcic.neovim.java.corerpc.client.TcpSocketRPCConnection
-
Creates a new
TcpSocketRPCConnectionbased on passedSocketIt uses input and output streams of givenSocketto communicate - toString() - Method in class com.ensarsarajcic.neovim.java.corerpc.client.ProcessRPCConnection
- 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
V
- 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
ExecutorServiceused by defaultRPCSenderwith instance given - withExecutorService(ExecutorService) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RPCClient.Builder.CustomRPCSenderBuilder
-
Changes
ExecutorServiceused by defaultRPCListenerwith instance given - withExecutorService(ExecutorService) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RPCClient.Builder
-
Changes
ExecutorServiceused by defaultRPCListenerwith 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
ObjectMapperused by defaultRPCSenderwith instance given - withObjectMapper(ObjectMapper) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RPCClient.Builder.CustomRPCSenderBuilder
-
Changes
ObjectMapperused by defaultRPCListenerwith instance given - withObjectMapper(ObjectMapper) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RPCClient.Builder
-
Changes
ObjectMapperused by defaultRPCListenerwith 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
RPCListenerwith instance given - withRPCListener(RPCListener) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RPCClient.Builder.CustomRPCSenderBuilder
-
Changes default
RPCListenerwith instance given After this change, defaultRPCListenerand its dependencies are discarded - withRPCListener(RPCListener) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RPCClient.Builder.DefaultRPCStreamerFullBuilder
-
Changes default
RPCListenerwith the one given - withRPCListener(RPCListener) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RPCClient.Builder
-
Changes default
RPCListenerwith the one given After this change, defaultRPCStreameris 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
RPCSenderwith instance given - withRPCSender(RPCSender) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RPCClient.Builder.DefaultRPCStreamerFullBuilder
-
Changes default
RPCSenderwith the one given - withRPCSender(RPCSender) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RPCClient.Builder
-
Changes default
RPCSenderwith the one given After this change, defaultRPCStreameris used and its dependencies may be changed - withRPCSenderAndListener(RPCSender, RPCListener) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RPCClient.Builder
-
Changes default
RPCListenerandRPCSenderwith the ones given After this change, defaultRPCStreameris used and its dependencies may be changed - withRPCStreamer(RPCStreamer) - Method in class com.ensarsarajcic.neovim.java.corerpc.client.RPCClient.Builder
-
Changes default
RPCStreamerwith the one given After this change is made, dependencies of the defaultRPCStreamercan not be changed
All Classes All Packages