Package com.microsoft.playwright.impl
Class ChannelOwner
java.lang.Object
com.microsoft.playwright.impl.LoggingSupport
com.microsoft.playwright.impl.ChannelOwner
- Direct Known Subclasses:
APIRequestContextImpl,ArtifactImpl,BindingCall,BrowserContextImpl,BrowserImpl,BrowserTypeImpl,CDPSessionImpl,Connection.Root,DialogImpl,FrameImpl,JSHandleImpl,JsonPipe,LocalUtils,PageImpl,PlaywrightImpl,RemoteBrowser,RequestImpl,ResponseImpl,RouteImpl,SelectorsImpl,Stream,TracingImpl,WebSocketImpl,WorkerImpl,WritableStream
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Connection(package private) final String(package private) final com.google.gson.JsonObjectprivate final Map<String, ChannelOwner> private ChannelOwner(package private) final Stringprivate boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedChannelOwner(ChannelOwner parent, String type, String guid, com.google.gson.JsonObject initializer) privateChannelOwner(Connection connection, ChannelOwner parent, String type, String guid, com.google.gson.JsonObject initializer) protectedChannelOwner(Connection connection, String type, String guid) -
Method Summary
Modifier and TypeMethodDescription(package private) voidadopt(ChannelOwner child) private void(package private) voiddisposeChannelOwner(boolean wasGarbageCollected) (package private) voidhandleEvent(String event, com.google.gson.JsonObject parameters) (package private) <T> T(package private) com.google.gson.JsonElementsendMessage(String method) (package private) com.google.gson.JsonElementsendMessage(String method, com.google.gson.JsonObject params) (package private) WaitableResult<com.google.gson.JsonElement> sendMessageAsync(String method, com.google.gson.JsonObject params) (package private) com.google.gson.JsonObject(package private) <T> TwithLogging(String apiName, Supplier<T> code) (package private) <T> TwithWaitLogging(String apiName, Function<Logger, T> code) Methods inherited from class com.microsoft.playwright.impl.LoggingSupport
logApi, logApiIfEnabled, logWithTimestamp, withLogging
-
Field Details
-
connection
-
parent
-
objects
-
type
-
guid
-
initializer
final com.google.gson.JsonObject initializer -
wasCollected
private boolean wasCollected
-
-
Constructor Details
-
ChannelOwner
protected ChannelOwner(ChannelOwner parent, String type, String guid, com.google.gson.JsonObject initializer) -
ChannelOwner
-
ChannelOwner
private ChannelOwner(Connection connection, ChannelOwner parent, String type, String guid, com.google.gson.JsonObject initializer)
-
-
Method Details
-
disposeChannelOwner
void disposeChannelOwner(boolean wasGarbageCollected) -
adopt
-
withWaitLogging
-
withLogging
- Overrides:
withLoggingin classLoggingSupport
-
sendMessageAsync
WaitableResult<com.google.gson.JsonElement> sendMessageAsync(String method, com.google.gson.JsonObject params) -
sendMessage
-
sendMessage
-
checkNotCollected
private void checkNotCollected() -
runUntil
-
handleEvent
-
toProtocolRef
com.google.gson.JsonObject toProtocolRef()
-