public static ByteValue ofKilobytes(long value) { return new ByteValue(value, ByteUnit.KILOBYTES); }
public static ByteValue ofMegabytes(long value) { return new ByteValue(value, ByteUnit.MEGABYTES); }
public ByteValue getTransportBuffer() { return new ByteValue(transportBuffer); }
public static ByteValue ofBytes(long value) { return new ByteValue(value, ByteUnit.BYTES); }
public static ByteValue ofBytes(long value) { return new ByteValue(value, ByteUnit.BYTES); }
public static ByteValue ofGigabytes(long value) { return new ByteValue(value, ByteUnit.GIGABYTES); }
public static ByteValue ofKilobytes(long value) { return new ByteValue(value, ByteUnit.KILOBYTES); }
public static ByteValue ofMegabytes(long value) { return new ByteValue(value, ByteUnit.MEGABYTES); }
public static ByteValue ofGigabytes(long value) { return new ByteValue(value, ByteUnit.GIGABYTES); }
public ByteValue toKilobytesValue() { return new ByteValue(unit.toKilobytes(value), KILOBYTES); }
public ByteValue toGigabytesValue() { return new ByteValue(unit.toGigabytes(value), ByteUnit.GIGABYTES); }
public ByteValue toMegabytesValue() { return new ByteValue(unit.toMegabytes(value), MEGABYTES); }
public ByteValue toMegabytesValue() { return new ByteValue(unit.toMegabytes(value), MEGABYTES); }
public ByteValue toGigabytesValue() { return new ByteValue(unit.toGigabytes(value), ByteUnit.GIGABYTES); }
public ByteValue toBytesValue() { return new ByteValue(unit.toBytes(value), BYTES); }
public ByteValue toBytesValue() { return new ByteValue(unit.toBytes(value), BYTES); }
public ByteValue toKilobytesValue() { return new ByteValue(unit.toKilobytes(value), KILOBYTES); }
protected ActorFuture<BufferingServerTransport> bindBufferingProtocolEndpoint( final SystemContext systemContext, final ServiceContainer serviceContainer, final String name, final SocketBindingCfg socketBindingCfg, final ByteValue receiveBufferSize) { final SocketAddress bindAddr = socketBindingCfg.toSocketAddress(); return createBufferingServerTransport( systemContext, serviceContainer, name, bindAddr.toInetSocketAddress(), new ByteValue(socketBindingCfg.getSendBufferSize()), receiveBufferSize); }
protected ActorFuture<BufferingServerTransport> bindBufferingProtocolEndpoint( final SystemContext systemContext, final ServiceContainer serviceContainer, final String name, final SocketBindingCfg socketBindingCfg, final ByteValue receiveBufferSize) { final SocketAddress bindAddr = socketBindingCfg.toSocketAddress(); return createBufferingServerTransport( systemContext, serviceContainer, name, bindAddr.toInetSocketAddress(), new ByteValue(socketBindingCfg.getSendBufferSize()), receiveBufferSize); }
protected ActorFuture<ServerTransport> bindNonBufferingProtocolEndpoint( final SystemContext systemContext, final ServiceContainer serviceContainer, final String name, final SocketBindingCfg socketBindingCfg, final ServiceName<? extends ServerRequestHandler> requestHandlerService, final ServiceName<? extends ServerMessageHandler> messageHandlerService) { final SocketAddress bindAddr = socketBindingCfg.toSocketAddress(); return createServerTransport( systemContext, serviceContainer, name, bindAddr.toInetSocketAddress(), new ByteValue(socketBindingCfg.getSendBufferSize()), requestHandlerService, messageHandlerService); }