Class StdCallbackContext
java.lang.Object
software.amazon.cloudformation.proxy.StdCallbackContext
StdCallbackContext provide a mechanism that automatically provides the
memoization for retention and callback of request, responses, stabilize
handles during handler invocations. During replay callbacks, this
automatically replays responses for different calls along the call graph
ensuring that we only execute the portions of the call graph that needs
execution and dedupe calls as needed.
This is not a sophisticated class that does request inspection based call
result, it is primarily a function result memoization that is ensured that it
is invoked once. Attempts to call the function multiple times with different
arguments will yield the same result for the same call graph key for
request(String, Function) and
response(String, BiFunction). For
stabilize(String, CallChain.Callback), only when
True is returned it is memoized.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoid<R> RevictRequestRecord(String callGraph) <RequestT> List<RequestT>findAllRequestByContains(String contains) <ResponseT>
List<ResponseT>findAllResponseByContains(String contains) <RequestT> RequestTfindFirstRequestByContains(String contains) <ResponseT>
ResponseTfindFirstResponseByContains(String contains) <M,R> Function<M, R> <ResponseT>
ResponseT<R,C, RT> BiFunction<R, C, RT> response(String callGraph, BiFunction<R, C, RT> func)
-
Constructor Details
-
StdCallbackContext
public StdCallbackContext()
-
-
Method Details
-
request
-
evictRequestRecord
-
response
-
callGraphs
-
response
-
findFirstRequestByContains
-
findAllRequestByContains
-
findFirstResponseByContains
-
findAllResponseByContains
-
attempts
-
attempts
-