/** * 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; }
/** * 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 BlockingMemoryPool(ByteValue capacity, long maxBlockTimeMs) { this.availableCapacity = capacity.toBytes(); this.maxBlockTimeMs = maxBlockTimeMs; }
public NonBlockingMemoryPool(ByteValue byteValue) { this((int) byteValue.toBytes()); }
public BlockingMemoryPool(ByteValue capacity, long maxBlockTimeMs) { this.availableCapacity = capacity.toBytes(); this.maxBlockTimeMs = maxBlockTimeMs; }
public NonBlockingMemoryPool(ByteValue byteValue) { this((int) byteValue.toBytes()); }
public RaftConfigurationMetadata() { partitionId = -1; replicationFactor = -1; logSegmentSize = ByteValue.ofMegabytes(512).toBytes(); term = 0; votedFor = null; members = new ArrayList<>(); }
public RaftConfigurationMetadata() { partitionId = -1; replicationFactor = -1; logSegmentSize = ByteValue.ofMegabytes(512).toBytes(); term = 0; votedFor = null; members = new ArrayList<>(); }
.setMembers(members) .setLogSegmentSize( new ByteValue(dataConfiguration.getDefaultLogSegmentSize()).toBytes()) .save();
.setMembers(members) .setLogSegmentSize( new ByteValue(dataConfiguration.getDefaultLogSegmentSize()).toBytes()) .save();