Package com.couchbase.client.core.cnc
Interface Context
-
- All Known Implementing Classes:
AbstractContext
,AggregateErrorContext
,AnalyticsErrorContext
,CancellationErrorContext
,CoreContext
,EndpointContext
,ErrorContext
,EventingErrorContext
,GenericHttpRequestErrorContext
,GenericRequestErrorContext
,IoContext
,KeyValueErrorContext
,KeyValueIoErrorContext
,ManagerErrorContext
,NodeContext
,ObserveContext
,ProtostellarContext
,ProtostellarErrorContext
,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
Context.ExportFormat
The format into which the context can be exported.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Object>
exportAsMap()
Export this context into a generic map.String
exportAsString(Context.ExportFormat format)
Export this context into the specified format.
-
-
-
Method Detail
-
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.
-
-