@@ -0,0 +1,2771 @@
+/*%0A * Copyright (c) Facebook, Inc. and its affiliates.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.facebook.buck.event;%0A%0Aimport com.facebook.buck.core.model.BuildId;%0Aimport java.io.IOException;%0Aimport java.time.Instant;%0A%0A/** An %7B@link IsolatedEventBus%7D that forwards events to a %7B@link BuckEventBus%7D. */%0Apublic class ForwardingIsolatedEventBus implements IsolatedEventBus %7B%0A%0A  private final BuckEventBus buckEventBus;%0A%0A  public ForwardingIsolatedEventBus(BuckEventBus buckEventBus) %7B%0A    this.buckEventBus = buckEventBus;%0A  %7D%0A%0A  @Override%0A  public BuildId getBuildId() %7B%0A    return buckEventBus.getBuildId();%0A  %7D%0A%0A  @Override%0A  public void post(ConsoleEvent event) %7B%0A    buckEventBus.post(event);%0A  %7D%0A%0A  @Override%0A  public void post(ConsoleEvent event, long threadId) %7B%0A    buckEventBus.post(event, threadId);%0A  %7D%0A%0A  @Override%0A  public void post(StepEvent event) %7B%0A    buckEventBus.post(event);%0A  %7D%0A%0A  @Override%0A  public void post(StepEvent event, long threadId) %7B%0A    buckEventBus.post(event, threadId);%0A  %7D%0A%0A  @Override%0A  public void post(StepEvent event, Instant atTime, long threadId) %7B%0A    buckEventBus.post(event, atTime, threadId);%0A  %7D%0A%0A  @Override%0A  public void post(SimplePerfEvent event) %7B%0A    buckEventBus.post(event);%0A  %7D%0A%0A  @Override%0A  public void post(SimplePerfEvent event, Instant atTime) %7B%0A    buckEventBus.post(event, atTime);%0A  %7D%0A%0A  @Override%0A  public void post(SimplePerfEvent event, long threadId) %7B%0A    buckEventBus.post(event, threadId);%0A  %7D%0A%0A  @Override%0A  public void post(SimplePerfEvent event, Instant atTime, long threadId) %7B%0A    buckEventBus.post(event, atTime, threadId);%0A  %7D%0A%0A  @Override%0A  public void postWithoutConfiguring(SimplePerfEvent event) %7B%0A    buckEventBus.postWithoutConfiguring(event);%0A  %7D%0A%0A  @Override%0A  public void timestamp(ConsoleEvent event) %7B%0A    buckEventBus.timestamp(event);%0A  %7D%0A%0A  @Override%0A  public void timestamp(StepEvent event) %7B%0A    buckEventBus.timestamp(event);%0A  %7D%0A%0A  @Override%0A  public void timestamp(SimplePerfEvent event) %7B%0A    buckEventBus.timestamp(event);%0A  %7D%0A%0A  @Override%0A  public void timestamp(SimplePerfEvent event, long threadId) %7B%0A    buckEventBus.timestamp(event, threadId);%0A  %7D%0A%0A  @Override%0A  public void close() throws IOException %7B%0A    buckEventBus.close();%0A  %7D%0A%7D%0A

Add ForwardingIsolatedEventBus