/** * Allocate a counter for tracking the last heartbeat of an entity. * * @param tempBuffer to be used for labels and key. * @param name of the counter for the label. * @param typeId of the counter for classification. * @param countersManager from which to allocated the underlying storage. * @param registrationId to be associated with the counter. * @return a new {@link AtomicCounter} for tracking the last heartbeat. */ public static AtomicCounter allocate( final MutableDirectBuffer tempBuffer, final String name, final int typeId, final CountersManager countersManager, final long registrationId) { return new AtomicCounter( countersManager.valuesBuffer(), allocateCounterId(tempBuffer, name, typeId, countersManager, registrationId), countersManager); }
/** * Allocate a per {@link io.aeron.driver.PublicationImage} indicator. * * @param tempBuffer to be used for labels and key. * @param name of the counter for the label. * @param countersManager from which to allocated the underlying storage. * @param registrationId to be associated with the counter. * @param sessionId for the stream of messages. * @param streamId for the stream of messages. * @param channel for the stream of messages. * @return a new {@link AtomicCounter} for tracking the indicator. */ public static AtomicCounter allocate( final MutableDirectBuffer tempBuffer, final String name, final CountersManager countersManager, final long registrationId, final int sessionId, final int streamId, final String channel) { final int counterId = StreamPositionCounter.allocateCounterId( tempBuffer, name, PER_IMAGE_TYPE_ID, countersManager, registrationId, sessionId, streamId, channel); return new AtomicCounter(countersManager.valuesBuffer(), counterId, countersManager); } }
private void concludeIdleStrategies() countersManager.valuesBuffer(), CONTROLLABLE_IDLE_STRATEGY.id());
(UnsafeBuffer)countersManager.valuesBuffer(), allocateCounterId(tempBuffer, name, typeId, countersManager, registrationId, sessionId, streamId, channel), countersManager); labelLength); return new UnsafeBufferPosition((UnsafeBuffer)countersManager.valuesBuffer(), counterId, countersManager);
/** * Allocate a counter for tracking the last heartbeat of an entity. * * @param tempBuffer to be used for labels and key. * @param name of the counter for the label. * @param typeId of the counter for classification. * @param countersManager from which to allocated the underlying storage. * @param registrationId to be associated with the counter. * @return a new {@link AtomicCounter} for tracking the last heartbeat. */ public static AtomicCounter allocate( final MutableDirectBuffer tempBuffer, final String name, final int typeId, final CountersManager countersManager, final long registrationId) { return new AtomicCounter( countersManager.valuesBuffer(), allocateCounterId(tempBuffer, name, typeId, countersManager, registrationId), countersManager); }
/** * Allocate a counter for tracking the last heartbeat of an entity. * * @param tempBuffer to be used for labels and key. * @param name of the counter for the label. * @param typeId of the counter for classification. * @param countersManager from which to allocated the underlying storage. * @param registrationId to be associated with the counter. * @return a new {@link AtomicCounter} for tracking the last heartbeat. */ public static AtomicCounter allocate( final MutableDirectBuffer tempBuffer, final String name, final int typeId, final CountersManager countersManager, final long registrationId) { return new AtomicCounter( countersManager.valuesBuffer(), allocateCounterId(tempBuffer, name, typeId, countersManager, registrationId), countersManager); }
/** * Allocate a per {@link io.aeron.driver.PublicationImage} indicator. * * @param tempBuffer to be used for labels and key. * @param name of the counter for the label. * @param countersManager from which to allocated the underlying storage. * @param registrationId to be associated with the counter. * @param sessionId for the stream of messages. * @param streamId for the stream of messages. * @param channel for the stream of messages. * @return a new {@link AtomicCounter} for tracking the indicator. */ public static AtomicCounter allocate( final MutableDirectBuffer tempBuffer, final String name, final CountersManager countersManager, final long registrationId, final int sessionId, final int streamId, final String channel) { final int counterId = StreamPositionCounter.allocateCounterId( tempBuffer, name, PER_IMAGE_TYPE_ID, countersManager, registrationId, sessionId, streamId, channel); return new AtomicCounter(countersManager.valuesBuffer(), counterId, countersManager); } }
/** * Allocate a per {@link io.aeron.driver.PublicationImage} indicator. * * @param tempBuffer to be used for labels and key. * @param name of the counter for the label. * @param countersManager from which to allocated the underlying storage. * @param registrationId to be associated with the counter. * @param sessionId for the stream of messages. * @param streamId for the stream of messages. * @param channel for the stream of messages. * @return a new {@link AtomicCounter} for tracking the indicator. */ public static AtomicCounter allocate( final MutableDirectBuffer tempBuffer, final String name, final CountersManager countersManager, final long registrationId, final int sessionId, final int streamId, final String channel) { final int counterId = StreamPositionCounter.allocateCounterId( tempBuffer, name, PER_IMAGE_TYPE_ID, countersManager, registrationId, sessionId, streamId, channel); return new AtomicCounter(countersManager.valuesBuffer(), counterId, countersManager); } }
private void concludeIdleStrategies() countersManager.valuesBuffer(), CONTROLLABLE_IDLE_STRATEGY.id());
private void concludeIdleStrategies() countersManager.valuesBuffer(), CONTROLLABLE_IDLE_STRATEGY.id());
(UnsafeBuffer)countersManager.valuesBuffer(), allocateCounterId(tempBuffer, name, typeId, countersManager, registrationId, sessionId, streamId, channel), countersManager); labelLength); return new UnsafeBufferPosition((UnsafeBuffer)countersManager.valuesBuffer(), counterId, countersManager);
(UnsafeBuffer)countersManager.valuesBuffer(), allocateCounterId(tempBuffer, name, typeId, countersManager, registrationId, sessionId, streamId, channel), countersManager); labelLength); return new UnsafeBufferPosition((UnsafeBuffer)countersManager.valuesBuffer(), counterId, countersManager);