Interface Context

All Known Implementing Classes:
AbstractContext, AggregateErrorContext, AnalyticsErrorContext, CancellationErrorContext, CoreContext, EndpointContext, ErrorContext, EventingErrorContext, GenericErrorContext, GenericHttpRequestErrorContext, GenericRequestErrorContext, IoContext, KeyValueErrorContext, KeyValueIoErrorContext, ManagerErrorContext, NodeContext, ObserveContext, ProtostellarContext, QueryErrorContext, RangeScanContext, ReducedAnalyticsErrorContext, ReducedKeyValueErrorContext, ReducedQueryErrorContext, ReducedSearchErrorContext, ReducedViewErrorContext, RequestContext, SearchErrorContext, ServiceContext, SubDocumentErrorContext, ViewErrorContext, WaitUntilReadyContext

public interface Context
Context represents some state that is passed throughout the system.

There are various stages of context that can extend or embed each other. The important part is that it can be inspected and exported into other formats.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    The format into which the context can be exported.
  • Method Summary

    Modifier and Type
    Method
    Description
    Export this context into a generic map.
    Export this context into the specified format.
  • Method Details

    • exportAsString

      String exportAsString(Context.ExportFormat format)
      Export this context into the specified format.
      Parameters:
      format - the format to export into.
      Returns:
      the exported format as a string representation.
    • exportAsMap

      Map<String,Object> exportAsMap()
      Export this context into a generic map.
      Returns:
      the exported format in a generic map representation.