public static ByteValue ofMegabytes(long value) { return new ByteValue(value, ByteUnit.MEGABYTES); }
/** * The number of bytes the buffer is be able to contain. Represents the size of the data section. * Additional space will be allocated for the meta-data sections */ public DispatcherBuilder bufferSize(final ByteValue byteValue) { this.bufferSize = (int) byteValue.toBytes(); return this; }
public RaftConfigurationMetadata() { partitionId = -1; replicationFactor = -1; logSegmentSize = ByteValue.ofMegabytes(512).toBytes(); term = 0; votedFor = null; members = new ArrayList<>(); }
public LogStreamService(final LogStreamBuilder builder) { this.logName = builder.getLogName(); this.partitionId = builder.getPartitionId(); this.serviceContainer = builder.getServiceContainer(); this.onCommitPositionUpdatedConditions = builder.getOnCommitPositionUpdatedConditions(); this.commitPosition = builder.getCommitPosition(); this.writeBufferSize = ByteValue.ofBytes(builder.getWriteBufferSize()); this.maxAppendBlockSize = builder.getMaxAppendBlockSize(); }
public LogStreamService(final LogStreamBuilder builder) { this.logName = builder.getLogName(); this.partitionId = builder.getPartitionId(); this.serviceContainer = builder.getServiceContainer(); this.onCommitPositionUpdatedConditions = builder.getOnCommitPositionUpdatedConditions(); this.commitPosition = builder.getCommitPosition(); this.writeBufferSize = ByteValue.ofBytes(builder.getWriteBufferSize()); this.maxAppendBlockSize = builder.getMaxAppendBlockSize(); }
public ByteValue getTransportBuffer() { return new ByteValue(transportBuffer); }
public BlockingMemoryPool(ByteValue capacity, long maxBlockTimeMs) { this.availableCapacity = capacity.toBytes(); this.maxBlockTimeMs = maxBlockTimeMs; }
public RaftConfigurationMetadata() { partitionId = -1; replicationFactor = -1; logSegmentSize = ByteValue.ofMegabytes(512).toBytes(); term = 0; votedFor = null; members = new ArrayList<>(); }
public static ByteValue ofKilobytes(long value) { return new ByteValue(value, ByteUnit.KILOBYTES); }
/** * The number of bytes the buffer is be able to contain. Represents the size of the data section. * Additional space will be allocated for the meta-data sections */ public DispatcherBuilder bufferSize(final ByteValue byteValue) { this.bufferSize = (int) byteValue.toBytes(); return this; }
public static ByteValue ofBytes(long value) { return new ByteValue(value, ByteUnit.BYTES); }
public BlockingMemoryPool(ByteValue capacity, long maxBlockTimeMs) { this.availableCapacity = capacity.toBytes(); this.maxBlockTimeMs = maxBlockTimeMs; }
public static ByteValue ofGigabytes(long value) { return new ByteValue(value, ByteUnit.GIGABYTES); }
public NonBlockingMemoryPool(ByteValue byteValue) { this((int) byteValue.toBytes()); }
public static ByteValue ofBytes(long value) { return new ByteValue(value, ByteUnit.BYTES); }
public NonBlockingMemoryPool(ByteValue byteValue) { this((int) byteValue.toBytes()); }
public static ByteValue ofKilobytes(long value) { return new ByteValue(value, ByteUnit.KILOBYTES); }
public static ByteValue ofMegabytes(long value) { return new ByteValue(value, ByteUnit.MEGABYTES); }