ImageBuffersReadyFlyweight
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using io.aeron.command.ImageBuffersReadyFlyweight (Showing top 20 results out of 315)

  • Common ways to obtain ImageBuffersReadyFlyweight
private void myMethod () {
ImageBuffersReadyFlyweight i =
  • ImageBuffersReadyFlyweight imageBuffersReadyFlyweight;MutableDirectBuffer buffer;imageBuffersReadyFlyweight.wrap(buffer, offset)
  • Smart code suggestions by Codota
}
origin: real-logic/aeron

public void onAvailableImage(
  final long correlationId,
  final int streamId,
  final int sessionId,
  final long subscriptionRegistrationId,
  final int positionCounterId,
  final String logFileName,
  final String sourceIdentity)
{
  imageReady
    .sessionId(sessionId)
    .streamId(streamId)
    .correlationId(correlationId)
    .subscriptionRegistrationId(subscriptionRegistrationId)
    .subscriberPositionId(positionCounterId)
    .logFileName(logFileName)
    .sourceIdentity(sourceIdentity);
  transmit(ON_AVAILABLE_IMAGE, buffer, 0, imageReady.length());
}
origin: real-logic/aeron

/**
 * Set the source identity string in ASCII
 *
 * @param value for the source identity
 * @return flyweight
 */
public ImageBuffersReadyFlyweight sourceIdentity(final String value)
{
  buffer.putStringAscii(offset + sourceIdentityOffset(), value);
  return this;
}
origin: real-logic/aeron

public ClientProxy(final BroadcastTransmitter transmitter)
{
  this.transmitter = transmitter;
  errorResponse.wrap(buffer, 0);
  imageReady.wrap(buffer, 0);
  publicationReady.wrap(buffer, 0);
  subscriptionReady.wrap(buffer, 0);
  operationSucceeded.wrap(buffer, 0);
  imageMessage.wrap(buffer, 0);
  counterUpdate.wrap(buffer, 0);
  clientTimeout.wrap(buffer, 0);
}
origin: real-logic/aeron

imageAvailableEvent.wrap(buffer, offset + relativeOffset);
dissect(imageAvailableEvent, builder);
break;
origin: real-logic/aeron

private static void dissect(final ImageBuffersReadyFlyweight msg, final StringBuilder builder)
{
  builder
    .append(msg.sessionId())
    .append(':')
    .append(msg.streamId())
    .append(" [")
    .append(msg.subscriberPositionId())
    .append(':')
    .append(msg.subscriptionRegistrationId())
    .append("] \"")
    .append(msg.sourceIdentity())
    .append("\" [")
    .append(msg.correlationId())
    .append("] ")
    .append(msg.logFileName());
}
origin: io.aeron/aeron-driver

public ClientProxy(final BroadcastTransmitter transmitter)
{
  this.transmitter = transmitter;
  errorResponse.wrap(buffer, 0);
  imageReady.wrap(buffer, 0);
  publicationReady.wrap(buffer, 0);
  subscriptionReady.wrap(buffer, 0);
  operationSucceeded.wrap(buffer, 0);
  imageMessage.wrap(buffer, 0);
  counterUpdate.wrap(buffer, 0);
  clientTimeout.wrap(buffer, 0);
}
origin: real-logic/aeron

/**
 * Return the source identity string in ASCII
 *
 * @return source identity string
 */
public String sourceIdentity()
{
  return buffer.getStringAscii(offset + sourceIdentityOffset());
}
origin: real-logic/aeron

imageReady.wrap(buffer, index);
  imageReady.correlationId(),
  imageReady.streamId(),
  imageReady.sessionId(),
  imageReady.subscriptionRegistrationId(),
  imageReady.subscriberPositionId(),
  imageReady.logFileName(),
  imageReady.sourceIdentity());
break;
origin: io.aeron/aeron-all

public ClientProxy(final BroadcastTransmitter transmitter)
{
  this.transmitter = transmitter;
  errorResponse.wrap(buffer, 0);
  imageReady.wrap(buffer, 0);
  publicationReady.wrap(buffer, 0);
  subscriptionReady.wrap(buffer, 0);
  operationSucceeded.wrap(buffer, 0);
  imageMessage.wrap(buffer, 0);
  counterUpdate.wrap(buffer, 0);
  clientTimeout.wrap(buffer, 0);
}
origin: real-logic/aeron

/**
 * Get the length of the current message
 * <p>
 * NB: must be called after the data is written in order to be accurate.
 *
 * @return the length of the current message
 */
public int length()
{
  final int sourceIdentityOffset = sourceIdentityOffset();
  return sourceIdentityOffset + buffer.getInt(offset + sourceIdentityOffset) + SIZE_OF_INT;
}
origin: io.aeron/aeron-driver

public void onAvailableImage(
  final long correlationId,
  final int streamId,
  final int sessionId,
  final long subscriptionRegistrationId,
  final int positionCounterId,
  final String logFileName,
  final String sourceIdentity)
{
  imageReady
    .sessionId(sessionId)
    .streamId(streamId)
    .correlationId(correlationId)
    .subscriptionRegistrationId(subscriptionRegistrationId)
    .subscriberPositionId(positionCounterId)
    .logFileName(logFileName)
    .sourceIdentity(sourceIdentity);
  transmit(ON_AVAILABLE_IMAGE, buffer, 0, imageReady.length());
}
origin: io.aeron/aeron-all

imageAvailableEvent.wrap(buffer, offset + relativeOffset);
dissect(imageAvailableEvent, builder);
break;
origin: io.aeron/aeron-all

/**
 * Get the length of the current message
 * <p>
 * NB: must be called after the data is written in order to be accurate.
 *
 * @return the length of the current message
 */
public int length()
{
  final int sourceIdentityOffset = sourceIdentityOffset();
  return sourceIdentityOffset + buffer.getInt(offset + sourceIdentityOffset) + SIZE_OF_INT;
}
origin: io.aeron/aeron-all

public void onAvailableImage(
  final long correlationId,
  final int streamId,
  final int sessionId,
  final long subscriptionRegistrationId,
  final int positionCounterId,
  final String logFileName,
  final String sourceIdentity)
{
  imageReady
    .sessionId(sessionId)
    .streamId(streamId)
    .correlationId(correlationId)
    .subscriptionRegistrationId(subscriptionRegistrationId)
    .subscriberPositionId(positionCounterId)
    .logFileName(logFileName)
    .sourceIdentity(sourceIdentity);
  transmit(ON_AVAILABLE_IMAGE, buffer, 0, imageReady.length());
}
origin: io.aeron/aeron-client

/**
 * Set the source identity string in ASCII
 *
 * @param value for the source identity
 * @return flyweight
 */
public ImageBuffersReadyFlyweight sourceIdentity(final String value)
{
  buffer.putStringAscii(offset + sourceIdentityOffset(), value);
  return this;
}
origin: io.aeron/aeron-all

private static void dissect(final ImageBuffersReadyFlyweight msg, final StringBuilder builder)
{
  builder
    .append(msg.sessionId())
    .append(':')
    .append(msg.streamId())
    .append(" [")
    .append(msg.subscriberPositionId())
    .append(':')
    .append(msg.subscriptionRegistrationId())
    .append("] \"")
    .append(msg.sourceIdentity())
    .append("\" [")
    .append(msg.correlationId())
    .append("] ")
    .append(msg.logFileName());
}
origin: io.aeron/aeron-all

/**
 * Return the source identity string in ASCII
 *
 * @return source identity string
 */
public String sourceIdentity()
{
  return buffer.getStringAscii(offset + sourceIdentityOffset());
}
origin: io.aeron/aeron-all

imageReady.wrap(buffer, index);
  imageReady.correlationId(),
  imageReady.sessionId(),
  imageReady.subscriptionRegistrationId(),
  imageReady.subscriberPositionId(),
  imageReady.logFileName(),
  imageReady.sourceIdentity());
break;
origin: io.aeron/aeron-client

/**
 * Return the source identity string in ASCII
 *
 * @return source identity string
 */
public String sourceIdentity()
{
  return buffer.getStringAscii(offset + sourceIdentityOffset());
}
origin: io.aeron/aeron-client

imageReady.wrap(buffer, index);
  imageReady.correlationId(),
  imageReady.sessionId(),
  imageReady.subscriptionRegistrationId(),
  imageReady.subscriberPositionId(),
  imageReady.logFileName(),
  imageReady.sourceIdentity());
break;
io.aeron.commandImageBuffersReadyFlyweight

Javadoc

Message to denote that new buffers for a publication image are ready for a subscription.

Note: Layout should be SBE 2.0 compliant so that the source identity length is aligned.

Most used methods

  • correlationId
    set correlation id field
  • logFileName
    Set the log filename in ASCII
  • sessionId
    set session id field
  • sourceIdentity
    Set the source identity string in ASCII
  • subscriberPositionId
    Set the position Id for the subscriber
  • subscriptionRegistrationId
    Set the registration Id for the Subscription
  • wrap
    Wrap the buffer at a given offset for updates.
  • streamId
    set stream id field
  • length
    Get the length of the current message NB: must be called after the data is written in order to be ac
  • sourceIdentityOffset

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • startActivity (Activity)
  • orElseThrow (Optional)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Option (scala)

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)