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

class ChannelOwner extends LoggingSupport
  • Field Details

    • connection

      final Connection connection
    • parent

      private ChannelOwner parent
    • objects

      private final Map<String,ChannelOwner> objects
    • type

      final String type
    • guid

      final String guid
    • initializer

      final com.google.gson.JsonObject initializer
    • wasCollected

      private boolean wasCollected
  • Constructor Details

  • Method Details

    • disposeChannelOwner

      void disposeChannelOwner(boolean wasGarbageCollected)
    • adopt

      void adopt(ChannelOwner child)
    • withWaitLogging

      <T> T withWaitLogging(String apiName, Function<Logger,T> code)
    • withLogging

      <T> T withLogging(String apiName, Supplier<T> code)
      Overrides:
      withLogging in class LoggingSupport
    • sendMessageAsync

      WaitableResult<com.google.gson.JsonElement> sendMessageAsync(String method, com.google.gson.JsonObject params)
    • sendMessage

      com.google.gson.JsonElement sendMessage(String method)
    • sendMessage

      com.google.gson.JsonElement sendMessage(String method, com.google.gson.JsonObject params)
    • checkNotCollected

      private void checkNotCollected()
    • runUntil

      <T> T runUntil(Runnable code, Waitable<T> waitable)
    • handleEvent

      void handleEvent(String event, com.google.gson.JsonObject parameters)
    • toProtocolRef

      com.google.gson.JsonObject toProtocolRef()