Class PublisherImpl (1.5.5) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 1.5.5keyboard_arrow_down  
  
 
    
    
     
    
    
    
    
    
      
  
  
  
    
public   final   class  PublisherImpl   extends   ProxyService   implements   Publisher<Offset> ,   RetryingConnectionObserver<Offset>  
   
  
  
    
Implements 
    com.google.cloud.pubsublite.internal.Publisher<com.google.cloud.pubsublite.Offset> , 
    com.google.cloud.pubsublite.internal.wire.RetryingConnectionObserver<com.google.cloud.pubsublite.Offset>  
  
  
  Constructors
   
   
  PublisherImpl(StreamFactories.PublishStreamFactory streamFactory, InitialPublishRequest initialRequest, BatchingSettings batchingSettings) 
  
    
public   PublisherImpl ( StreamFactories . PublishStreamFactory   streamFactory ,   InitialPublishRequest   initialRequest ,   BatchingSettings   batchingSettings )  
   
  Parameters 
  
  Methods
   
   
  cancelOutstandingPublishes() 
  
    
public   void   cancelOutstandingPublishes ()  
   
   
  flush() 
  
   
  handlePermanentError(CheckedApiException error) 
  
    
protected   void   handlePermanentError ( CheckedApiException   error )  
   
  Parameter 
  
  Overrides 
  
   
  onClientResponse(Offset value) 
  
    
public   void   onClientResponse ( Offset   value )  
   
  Parameter 
  
  Exceptions 
  
   
  publish(Message message) 
  
    
public   ApiFuture<Offset>   publish ( Message   message )  
   
  Parameter 
  
  Returns 
  
   
  start() 
  
  Overrides 
  
   
  stop() 
  
  Overrides 
  
   
  triggerReinitialize(CheckedApiException streamError) 
  
    
public   void   triggerReinitialize ( CheckedApiException   streamError )  
   
  Parameter 
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]