diff options
author | 2017-02-21 15:00:25 +0000 | |
---|---|---|
committer | 2017-02-21 16:08:47 +0000 | |
commit | 35a2a36e6c0e43eea0c899477f073f2ac4b1d787 (patch) | |
tree | faa6884e265d0b436264d021b6839e9ff005839c /src/main/java/com/google/devtools/build/lib/buildeventstream | |
parent | f19aa2150d419b0ab605025bcb3d033b59ddbd24 (diff) |
Declare all BuildEvents as Postable
...through the ExtendedEventHandler. The main use case of the extended
event handler is to allow posting of BuildEvents. So it is implicit that
they are all good to be posted. Declare this.
--
Change-Id: I9fcb2f33e57e05c3a05509b1121e44396f28c168
Reviewed-on: https://cr.bazel.build/9011
PiperOrigin-RevId: 148090465
MOS_MIGRATED_REVID=148090465
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/buildeventstream')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEvent.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEvent.java b/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEvent.java index 0a42d83c5d..a93922b8d7 100644 --- a/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEvent.java +++ b/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEvent.java @@ -14,6 +14,7 @@ package com.google.devtools.build.lib.buildeventstream; +import com.google.devtools.build.lib.events.ExtendedEventHandler; /** * Interface for objects that can be posted on the public event stream. @@ -21,7 +22,7 @@ package com.google.devtools.build.lib.buildeventstream; * <p>Objects posted on the build-event stream will implement this interface. This allows * pass-through of events, as well as proper chaining of events. */ -public interface BuildEvent extends ChainableEvent { +public interface BuildEvent extends ChainableEvent, ExtendedEventHandler.Postable { /** * Provide a binary representation of the event. * |