Uses of Interface
eu.cloudnetservice.driver.network.buffer.DataBuf
Packages that use DataBuf
Package
Description
-
Uses of DataBuf in eu.cloudnetservice.driver.channel
Fields in eu.cloudnetservice.driver.channel declared as DataBufModifier and TypeFieldDescriptionprivate DataBufChannelMessage.Builder.contentChannelMessage.contentThe field for thecontentrecord component.Methods in eu.cloudnetservice.driver.channel that return DataBufModifier and TypeMethodDescriptionChannelMessage.content()Returns the value of thecontentrecord component.Methods in eu.cloudnetservice.driver.channel with parameters of type DataBufModifier and TypeMethodDescriptionSets the content of this message.Constructors in eu.cloudnetservice.driver.channel with parameters of type DataBufModifierConstructorDescriptionChannelMessage(boolean sendSync, boolean prioritized, @NonNull String channel, @NonNull String message, @NonNull DataBuf content, @NonNull ChannelMessageSender sender, @NonNull Collection<ChannelMessageTarget> targets) Creates an instance of aChannelMessagerecord class. -
Uses of DataBuf in eu.cloudnetservice.driver.event.events.channel
Methods in eu.cloudnetservice.driver.event.events.channel that return DataBufModifier and TypeMethodDescriptionChannelMessageReceiveEvent.content()Get the content of the channel message.Methods in eu.cloudnetservice.driver.event.events.channel with parameters of type DataBufModifier and TypeMethodDescriptionvoidChannelMessageReceiveEvent.binaryResponse(@NonNull DataBuf dataBuf) Sets the response of this channel message to a channel message which just contains the given buffer as the content of it. -
Uses of DataBuf in eu.cloudnetservice.driver.network.buffer
Subinterfaces of DataBuf in eu.cloudnetservice.driver.network.bufferModifier and TypeInterfaceDescriptionstatic interfaceRepresents a mutable version of a data buf.Methods in eu.cloudnetservice.driver.network.buffer that return DataBufModifier and TypeMethodDescriptionDataBuf.Mutable.asImmutable()Converts this buffer into an immutable version of it.Creates a readonly copy of the given data buffer.DataBuf.disableReleasing()Disables that the underlying buffer can be released when the reader index of this buffer reaches the tail or an explicit call torelease()orclose()is made.DataBuf.enableReleasing()Enables that the underlying buffer can be released when the reader index of this buffer reaches the tail or an explicit call torelease()orclose()is made.DataBufFactory.fromBytes(byte[] bytes) Creates a new readonly buffer wrapping the given byte array and using it as it's data source.DataBuf.readDataBuf()Reads the next data buf from the buffer.DataBuf.redoTransaction()Redoes the currently running transaction on the buffer.DataBuf.startTransaction()Starts a transaction to the buffer.Methods in eu.cloudnetservice.driver.network.buffer with parameters of type DataBufModifier and TypeMethodDescriptionCreates a readonly copy of the given data buffer.DataBufFactory.mutableCopyOf(@NonNull DataBuf dataBuf) Creates a mutable copy of the given data buffer.voidReads all data of this object from the given buffer.DataBuf.Mutable.writeDataBuf(@NonNull DataBuf buf) Writes all data of the given data buffer into this data buffer starting at the current reader index of the given buffer.Method parameters in eu.cloudnetservice.driver.network.buffer with type arguments of type DataBufModifier and TypeMethodDescription<T> TDataBuf.readNullable(@NonNull Function<DataBuf, T> readerWhenNonNull) Reads the next requested data from the buffer.<T> TDataBuf.readNullable(@NonNull Function<DataBuf, T> readerWhenNonNull, T valueWhenNull) Reads the next requested data from the buffer. -
Uses of DataBuf in eu.cloudnetservice.driver.network.chunk
Methods in eu.cloudnetservice.driver.network.chunk with parameters of type DataBufModifier and TypeMethodDescriptionbooleanChunkedPacketHandler.handleChunkPart(int chunkPosition, @NonNull DataBuf dataBuf) Handles a part of chunked data which gets supplied to the current component.ChunkedPacketSender.Builder.withExtraData(@NonNull DataBuf extraData) Sets the extra information provided to each target component when opening a chunked session. -
Uses of DataBuf in eu.cloudnetservice.driver.network.chunk.data
Fields in eu.cloudnetservice.driver.network.chunk.data declared as DataBufModifier and TypeFieldDescriptionChunkSessionInformation.transferInformationThe field for thetransferInformationrecord component.Methods in eu.cloudnetservice.driver.network.chunk.data that return DataBufModifier and TypeMethodDescriptionChunkSessionInformation.transferInformation()Returns the value of thetransferInformationrecord component.Constructors in eu.cloudnetservice.driver.network.chunk.data with parameters of type DataBuf -
Uses of DataBuf in eu.cloudnetservice.driver.network.chunk.defaults
Methods in eu.cloudnetservice.driver.network.chunk.defaults with parameters of type DataBufModifier and TypeMethodDescriptionbooleanDefaultFileChunkedPacketHandler.handleChunkPart(int chunkPosition, @NonNull DataBuf dataBuf) Handles a part of chunked data which gets supplied to the current component.protected voidDefaultFileChunkedPacketHandler.writePacketContent(int chunkPosition, @NonNull DataBuf dataBuf) Writes the content of a chunk part to the backing file, increasing the amount of written bytes by one. -
Uses of DataBuf in eu.cloudnetservice.driver.network.chunk.defaults.builder
Fields in eu.cloudnetservice.driver.network.chunk.defaults.builder declared as DataBufModifier and TypeFieldDescriptionprotected DataBufDefaultChunkedPacketSenderBuilder.transferInformationMethods in eu.cloudnetservice.driver.network.chunk.defaults.builder with parameters of type DataBufModifier and TypeMethodDescriptionDefaultChunkedPacketSenderBuilder.withExtraData(@NonNull DataBuf extraData) Sets the extra information provided to each target component when opening a chunked session. -
Uses of DataBuf in eu.cloudnetservice.driver.network.chunk.network
Constructors in eu.cloudnetservice.driver.network.chunk.network with parameters of type DataBuf -
Uses of DataBuf in eu.cloudnetservice.driver.network.def
Constructors in eu.cloudnetservice.driver.network.def with parameters of type DataBufModifierConstructorDescriptionPacketClientAuthorization(@NonNull PacketClientAuthorization.PacketAuthorizationType type, @NonNull DataBuf dataBuf) Constructs a new authorization packet. -
Uses of DataBuf in eu.cloudnetservice.driver.network.netty.buffer
Classes in eu.cloudnetservice.driver.network.netty.buffer that implement DataBufModifier and TypeClassDescriptionclassThe default implementation of an immutable data buf wrapping a netty byte buf.classRepresents the default implementation of a mutable data buf, wrapping a netty byte buffer.Methods in eu.cloudnetservice.driver.network.netty.buffer that return DataBufModifier and TypeMethodDescriptionNettyMutableDataBuf.asImmutable()Converts this buffer into an immutable version of it.Creates a readonly copy of the given data buffer.NettyImmutableDataBuf.disableReleasing()Disables that the underlying buffer can be released when the reader index of this buffer reaches the tail or an explicit call torelease()orclose()is made.NettyImmutableDataBuf.enableReleasing()Enables that the underlying buffer can be released when the reader index of this buffer reaches the tail or an explicit call torelease()orclose()is made.NettyDataBufFactory.fromBytes(byte[] bytes) Creates a new readonly buffer wrapping the given byte array and using it as it's data source.NettyImmutableDataBuf.readDataBuf()Reads the next data buf from the buffer.NettyImmutableDataBuf.redoTransaction()Redoes the currently running transaction on the buffer.NettyImmutableDataBuf.startTransaction()Starts a transaction to the buffer.Methods in eu.cloudnetservice.driver.network.netty.buffer with parameters of type DataBufModifier and TypeMethodDescriptionCreates a readonly copy of the given data buffer.NettyDataBufFactory.mutableCopyOf(@NonNull DataBuf dataBuf) Creates a mutable copy of the given data buffer.NettyMutableDataBuf.writeDataBuf(@NonNull DataBuf buf) Writes all data of the given data buffer into this data buffer starting at the current reader index of the given buffer.Method parameters in eu.cloudnetservice.driver.network.netty.buffer with type arguments of type DataBufModifier and TypeMethodDescription<T> TNettyImmutableDataBuf.readNullable(@NonNull Function<DataBuf, T> readerWhenNonNull) Reads the next requested data from the buffer.<T> TNettyImmutableDataBuf.readNullable(@NonNull Function<DataBuf, T> readerWhenNonNull, T valueWhenNull) Reads the next requested data from the buffer. -
Uses of DataBuf in eu.cloudnetservice.driver.network.protocol
Fields in eu.cloudnetservice.driver.network.protocol declared as DataBufMethods in eu.cloudnetservice.driver.network.protocol that return DataBufModifier and TypeMethodDescriptionBasePacket.content()Get the content of this packet.EmptyPacket.content()Get the content of this packet.Packet.content()Get the content of this packet.Methods in eu.cloudnetservice.driver.network.protocol with parameters of type DataBufModifier and TypeMethodDescriptionBasePacket.constructResponse(@NonNull DataBuf content) Constructs a new packet as a response to this packet.EmptyPacket.constructResponse(@NonNull DataBuf content) Constructs a new packet as a response to this packet.Packet.constructResponse(@NonNull DataBuf content) Constructs a new packet as a response to this packet.Constructors in eu.cloudnetservice.driver.network.protocol with parameters of type DataBufModifierConstructorDescriptionBasePacket(int channel, boolean prioritized, @NonNull DataBuf dataBuf) Constructs a new base packet instance.BasePacket(int channel, @NonNull DataBuf dataBuf) Constructs a new base packet instance. -
Uses of DataBuf in eu.cloudnetservice.driver.network.rpc
Methods in eu.cloudnetservice.driver.network.rpc that return DataBufModifier and TypeMethodDescriptionRPCInvocationContext.argumentInformation()Get the data buffer slice which should contain the argument information for the current method invocation.Methods in eu.cloudnetservice.driver.network.rpc with parameters of type DataBufModifier and TypeMethodDescriptionRPCInvocationContext.Builder.argumentInformation(@NonNull DataBuf information) Sets the buffer containing the argument information for the method invocation. -
Uses of DataBuf in eu.cloudnetservice.driver.network.rpc.defaults.handler.context
Fields in eu.cloudnetservice.driver.network.rpc.defaults.handler.context declared as DataBufModifier and TypeFieldDescriptionprotected final DataBufDefaultRPCInvocationContext.argumentsprotected DataBufDefaultRPCInvocationContextBuilder.argumentsMethods in eu.cloudnetservice.driver.network.rpc.defaults.handler.context that return DataBufModifier and TypeMethodDescriptionDefaultRPCInvocationContext.argumentInformation()Get the data buffer slice which should contain the argument information for the current method invocation.Methods in eu.cloudnetservice.driver.network.rpc.defaults.handler.context with parameters of type DataBufModifier and TypeMethodDescriptionDefaultRPCInvocationContextBuilder.argumentInformation(@NonNull DataBuf information) Sets the buffer containing the argument information for the method invocation.Constructors in eu.cloudnetservice.driver.network.rpc.defaults.handler.context with parameters of type DataBufModifierConstructorDescriptionprotectedDefaultRPCInvocationContext(int argumentCount, boolean expectsMethodResult, boolean normalizePrimitives, boolean strictInstanceUsage, @NonNull String methodName, @NonNull NetworkChannel channel, @NonNull DataBuf arguments, @Nullable Object workingInstance) Constructs a new default rpc invocation context instance. -
Uses of DataBuf in eu.cloudnetservice.driver.network.rpc.defaults.handler.util
Methods in eu.cloudnetservice.driver.network.rpc.defaults.handler.util that return DataBufModifier and TypeMethodDescriptionExceptionalResultUtil.serializeFirstElement(DataBuf.Mutable target, StackTraceElement @NonNull [] elements) Writes the first stack trace element into the given buffer using the following format: A boolean, indicating if a stack trace element is following, if false no other field will follow.ExceptionalResultUtil.serializeThrowable(DataBuf.Mutable target, @NonNull Throwable throwable) Serializes the given throwable into the given data buffer by writing the name of the exception which was thrown.Methods in eu.cloudnetservice.driver.network.rpc.defaults.handler.util with parameters of type DataBufModifier and TypeMethodDescriptionstatic voidExceptionalResultUtil.rethrowException(@NonNull DataBuf source) Rethrows a serialized exception by wrapping the message and stack trace information into on message and using it as a message in aRPCExecutionException. -
Uses of DataBuf in eu.cloudnetservice.driver.network.rpc.defaults.object
Methods in eu.cloudnetservice.driver.network.rpc.defaults.object with parameters of type DataBufModifier and TypeMethodDescription<T> TDefaultObjectMapper.readObject(@NonNull DataBuf dataBuf, @NonNull Type type) Reads an object from the given buffer by the given type using the previously registered serializers. -
Uses of DataBuf in eu.cloudnetservice.driver.network.rpc.defaults.object.data
Methods in eu.cloudnetservice.driver.network.rpc.defaults.object.data with parameters of type DataBufModifier and TypeMethodDescriptionDataClassInvokerGenerator.DataClassInstanceCreator.makeInstance(@NonNull DataBuf buf, @NonNull ObjectMapper context) Provides a new instance of the data class reading the required arguments from the given buffer, deserializing them using the given object mapper.Reads the object from the buffer.DataClassSerializer.readArray(@NonNull DataBuf source, @NonNull Class<?> clazz, @NonNull ObjectMapper caller) Reads an array from the given data buf source. -
Uses of DataBuf in eu.cloudnetservice.driver.network.rpc.defaults.object.serializers
Fields in eu.cloudnetservice.driver.network.rpc.defaults.object.serializers with type parameters of type DataBufMethods in eu.cloudnetservice.driver.network.rpc.defaults.object.serializers with parameters of type DataBufModifier and TypeMethodDescriptionCollectionObjectSerializer.read(@NonNull DataBuf source, @NonNull Type type, @NonNull ObjectMapper caller) Reads the object from the buffer.DataBufableObjectSerializer.read(@NonNull DataBuf source, @NonNull Type type, @NonNull ObjectMapper caller) Reads the object from the buffer.DataBufObjectSerializer.read(@NonNull DataBuf source, @NonNull Type type, @NonNull ObjectMapper caller) Reads the object from the buffer.EnumObjectSerializer.read(@NonNull DataBuf source, @NonNull Type type, @NonNull ObjectMapper caller) Reads the object from the buffer.FunctionalObjectSerializer.read(@NonNull DataBuf source, @NonNull Type type, @NonNull ObjectMapper caller) Reads the object from the buffer.JsonDocumentObjectSerializer.read(@NonNull DataBuf source, @NonNull Type type, @NonNull ObjectMapper caller) Reads the object from the buffer.Reads the object from the buffer.OptionalObjectSerializer.read(@NonNull DataBuf source, @NonNull Type type, @NonNull ObjectMapper caller) Reads the object from the buffer.PathObjectSerializer.read(@NonNull DataBuf source, @NonNull Type type, @NonNull ObjectMapper caller) Reads the object from the buffer.PatternObjectSerializer.read(@NonNull DataBuf source, @NonNull Type type, @NonNull ObjectMapper caller) Reads the object from the buffer.UUIDObjectSerializer.read(@NonNull DataBuf source, @NonNull Type type, @NonNull ObjectMapper caller) Reads the object from the buffer.voidDataBufObjectSerializer.write(DataBuf.Mutable dataBuf, @NonNull DataBuf object, @NonNull Type type, @NonNull ObjectMapper caller) Writes the given object into the given buffer for network transfer and later deserialization.Method parameters in eu.cloudnetservice.driver.network.rpc.defaults.object.serializers with type arguments of type DataBufModifier and TypeMethodDescriptionstatic <T> @NonNull FunctionalObjectSerializer<T>FunctionalObjectSerializer.of(@NonNull Function<DataBuf, T> reader, @NonNull BiConsumer<DataBuf.Mutable, T> writer) Constructs a new functional object serializer instance.Constructor parameters in eu.cloudnetservice.driver.network.rpc.defaults.object.serializers with type arguments of type DataBufModifierConstructorDescriptionprotectedFunctionalObjectSerializer(@NonNull Function<DataBuf, T> reader, @NonNull BiConsumer<DataBuf.Mutable, T> writer) Constructs a new functional object serializer instance. -
Uses of DataBuf in eu.cloudnetservice.driver.network.rpc.listener
Methods in eu.cloudnetservice.driver.network.rpc.listener that return DataBufModifier and TypeMethodDescriptionRPCPacketListener.handle(@NonNull String clazz, @NonNull RPCInvocationContext context) Posts the next rpc instruction in the given context into the handler for the given class which potentially contains the target method and serializes the result into a data buffer.RPCPacketListener.serializeResult(RPCHandler.HandlingResult result, @NonNull DataBufFactory dataBufFactory, @NonNull ObjectMapper objectMapper, @NonNull RPCInvocationContext context) Serializes the given handling result into a newly allocated buffer using the given data buf factory.Methods in eu.cloudnetservice.driver.network.rpc.listener with parameters of type DataBufModifier and TypeMethodDescriptionprotected @NonNull RPCInvocationContextRPCPacketListener.buildContext(@NonNull NetworkChannel channel, @NonNull DataBuf content, @Nullable Object on, boolean strictInstanceUsage) Builds a new context for a rpc method invocation based on the given information and remaining content in the buffer. -
Uses of DataBuf in eu.cloudnetservice.driver.network.rpc.object
Methods in eu.cloudnetservice.driver.network.rpc.object with parameters of type DataBufModifier and TypeMethodDescriptionReads the object from the buffer.<T> @UnknownNullability TObjectMapper.readObject(@NonNull DataBuf dataBuf, @NonNull Type type) Reads an object from the given buffer by the given type using the previously registered serializers. -
Uses of DataBuf in eu.cloudnetservice.driver.network.rpc.packet
Constructors in eu.cloudnetservice.driver.network.rpc.packet with parameters of type DataBufModifierConstructorDescriptionRPCRequestPacket(@NonNull DataBuf dataBuf) Constructs a new rpc request packet.