From: David ‘Bombe’ Roden Date: Wed, 5 Jun 2013 05:05:39 +0000 (+0200) Subject: Expose a connection’s source and sinks. X-Git-Url: https://git.pterodactylus.net/?p=sonitus.git;a=commitdiff_plain;h=4967546bf065b9644eaa6773e7c8357dbc262fd3 Expose a connection’s source and sinks. --- diff --git a/src/main/java/net/pterodactylus/sonitus/data/Pipeline.java b/src/main/java/net/pterodactylus/sonitus/data/Pipeline.java index 923012e..5b7edae 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/Pipeline.java +++ b/src/main/java/net/pterodactylus/sonitus/data/Pipeline.java @@ -339,6 +339,24 @@ public class Pipeline implements Iterable { // /** + * Returns the source of this connection. + * + * @return The source of this connection + */ + public Filter source() { + return source; + } + + /** + * Returns the sinks of this connection. + * + * @return The sinks of this connection + */ + public Collection sinks() { + return sinks; + } + + /** * Returns the time this connection was started. * * @return The time this connection was started (in milliseconds since Jan 1,