Top Inners Fields Constructors Methods
org.glassfish.grizzly.http2

pack-priv Class AggrCompletionHandler

extends Object
implements CompletionHandler<WriteResult<K, L>>
Class Inheritance
All Implemented Interfaces
org.glassfish.grizzly.CompletionHandler
Imports
java.util.Arrays, org.glassfish.grizzly.CompletionHandler, .WriteResult

Author
oleksiys

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private AggrCompletionHandler.Record[]
private int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
cancelled()

Implements org.glassfish.grizzly.CompletionHandler.cancelled.

The operation was cancelled.

public void
completed(final WriteResult<K, L> result)

Implements org.glassfish.grizzly.CompletionHandler.completed.

The operation was completed.

private void
public void
failed(final Throwable throwable)

Implements org.glassfish.grizzly.CompletionHandler.failed.

The operation was failed.

public void
register(final CompletionHandler<WriteResult<K, L>> completionHandler, final int bytesWrittenToReport)

public void
updated(WriteResult<K, L> result)

Implements org.glassfish.grizzly.CompletionHandler.updated.

The callback method may be called, when there is some progress in operation execution, but it is still not completed

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

completionHandlerRecordsback to summary
private AggrCompletionHandler.Record[] completionHandlerRecords
recordsCountback to summary
private int recordsCount

Constructor Detail

AggrCompletionHandlerback to summary
pack-priv AggrCompletionHandler()

Method Detail

cancelledback to summary
public void cancelled()

Implements org.glassfish.grizzly.CompletionHandler.cancelled.

Doc from org.glassfish.grizzly.CompletionHandler.cancelled.

The operation was cancelled.

Annotations
@Override
completedback to summary
public void completed(final WriteResult<K, L> result)

Implements org.glassfish.grizzly.CompletionHandler.completed.

Doc from org.glassfish.grizzly.CompletionHandler.completed.

The operation was completed.

Annotations
@Override
ensureCapacityback to summary
private void ensureCapacity()
failedback to summary
public void failed(final Throwable throwable)

Implements org.glassfish.grizzly.CompletionHandler.failed.

Doc from org.glassfish.grizzly.CompletionHandler.failed.

The operation was failed.

Annotations
@Override
registerback to summary
public void register(final CompletionHandler<WriteResult<K, L>> completionHandler, final int bytesWrittenToReport)
updatedback to summary
public void updated(WriteResult<K, L> result)

Implements org.glassfish.grizzly.CompletionHandler.updated.

Doc from org.glassfish.grizzly.CompletionHandler.updated.

The callback method may be called, when there is some progress in operation execution, but it is still not completed

Annotations
@Override
org.glassfish.grizzly.http2 back to summary

private Class AggrCompletionHandler.Record

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private int
private CompletionHandler<WriteResult<K, L>>

Constructor Summary

AccessConstructor and Description
pack-priv
Record(final CompletionHandler<WriteResult<K, L>> completionHandler, final int bytesWrittenToReport)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
set(final CompletionHandler<WriteResult<K, L>> completionHandler, final int bytesWrittenToReport)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bytesWrittenToReportback to summary
private int bytesWrittenToReport
completionHandlerback to summary
private CompletionHandler<WriteResult<K, L>> completionHandler

Constructor Detail

Recordback to summary
pack-priv Record(final CompletionHandler<WriteResult<K, L>> completionHandler, final int bytesWrittenToReport)

Method Detail

resetback to summary
pack-priv void reset()
setback to summary
pack-priv void set(final CompletionHandler<WriteResult<K, L>> completionHandler, final int bytesWrittenToReport)