ByteValue
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using io.zeebe.util.ByteValue (Showing top 20 results out of 315)

origin: zeebe-io/zeebe

public ByteValue getTransportBuffer() {
 return new ByteValue(transportBuffer);
}
origin: zeebe-io/zeebe

/**
 * 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;
}
origin: zeebe-io/zeebe

public RaftConfigurationMetadata() {
 partitionId = -1;
 replicationFactor = -1;
 logSegmentSize = ByteValue.ofMegabytes(512).toBytes();
 term = 0;
 votedFor = null;
 members = new ArrayList<>();
}
origin: io.zeebe/zeebe-broker-core

.setMembers(members)
.setLogSegmentSize(
  new ByteValue(dataConfiguration.getDefaultLogSegmentSize()).toBytes())
.save();
origin: zeebe-io/zeebe

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();
}
origin: zeebe-io/zeebe

.setMembers(members)
.setLogSegmentSize(
  new ByteValue(dataConfiguration.getDefaultLogSegmentSize()).toBytes())
.save();
origin: io.zeebe/zb-logstreams

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();
}
origin: zeebe-io/zeebe

public static ByteValue ofMegabytes(long value) {
 return new ByteValue(value, ByteUnit.MEGABYTES);
}
origin: zeebe-io/zeebe

public BlockingMemoryPool(ByteValue capacity, long maxBlockTimeMs) {
 this.availableCapacity = capacity.toBytes();
 this.maxBlockTimeMs = maxBlockTimeMs;
}
origin: io.zeebe/zeebe-broker-core

public RaftConfigurationMetadata() {
 partitionId = -1;
 replicationFactor = -1;
 logSegmentSize = ByteValue.ofMegabytes(512).toBytes();
 term = 0;
 votedFor = null;
 members = new ArrayList<>();
}
origin: zeebe-io/zeebe

public static ByteValue ofKilobytes(long value) {
 return new ByteValue(value, ByteUnit.KILOBYTES);
}
origin: io.zeebe/zb-dispatcher

/**
 * 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;
}
origin: zeebe-io/zeebe

public static ByteValue ofBytes(long value) {
 return new ByteValue(value, ByteUnit.BYTES);
}
origin: io.zeebe/zb-transport

public BlockingMemoryPool(ByteValue capacity, long maxBlockTimeMs) {
 this.availableCapacity = capacity.toBytes();
 this.maxBlockTimeMs = maxBlockTimeMs;
}
origin: zeebe-io/zeebe

public static ByteValue ofGigabytes(long value) {
 return new ByteValue(value, ByteUnit.GIGABYTES);
}
origin: io.zeebe/zb-transport

public NonBlockingMemoryPool(ByteValue byteValue) {
 this((int) byteValue.toBytes());
}
origin: io.zeebe/zb-util

public static ByteValue ofBytes(long value) {
 return new ByteValue(value, ByteUnit.BYTES);
}
origin: zeebe-io/zeebe

public NonBlockingMemoryPool(ByteValue byteValue) {
 this((int) byteValue.toBytes());
}
origin: io.zeebe/zb-util

public static ByteValue ofKilobytes(long value) {
 return new ByteValue(value, ByteUnit.KILOBYTES);
}
origin: io.zeebe/zb-util

public static ByteValue ofMegabytes(long value) {
 return new ByteValue(value, ByteUnit.MEGABYTES);
}
io.zeebe.utilByteValue

Most used methods

  • <init>
  • toBytes
  • ofBytes
  • ofMegabytes

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)