@@ -31,6 +31,9 @@ public LogsContainerCmd(DockerHttpClient client, String containerId) {
3131
3232 /**
3333 * Follow log output (streaming).
34+ *
35+ * @param follow true to follow log output
36+ * @return this command instance
3437 */
3538 public LogsContainerCmd withFollow (boolean follow ) {
3639 this .follow = follow ;
@@ -49,6 +52,9 @@ public LogsContainerCmd withStderr(boolean stderr) {
4952
5053 /**
5154 * Show logs since timestamp (Unix timestamp or RFC3339).
55+ *
56+ * @param since the start timestamp
57+ * @return this command instance
5258 */
5359 public LogsContainerCmd withSince (String since ) {
5460 this .since = since ;
@@ -57,6 +63,9 @@ public LogsContainerCmd withSince(String since) {
5763
5864 /**
5965 * Show logs until timestamp (Unix timestamp or RFC3339).
66+ *
67+ * @param until the end timestamp
68+ * @return this command instance
6069 */
6170 public LogsContainerCmd withUntil (String until ) {
6271 this .until = until ;
@@ -70,6 +79,9 @@ public LogsContainerCmd withTimestamps(boolean timestamps) {
7079
7180 /**
7281 * Only return the last N lines.
82+ *
83+ * @param tail the number of lines to return
84+ * @return this command instance
7385 */
7486 public LogsContainerCmd withTail (int tail ) {
7587 this .tail = tail ;
@@ -78,6 +90,8 @@ public LogsContainerCmd withTail(int tail) {
7890
7991 /**
8092 * Execute the command and return logs as a string.
93+ *
94+ * @return the log output as a string
8195 */
8296 public String exec () {
8397 try {
@@ -101,6 +115,8 @@ public String exec() {
101115
102116 /**
103117 * Execute the command with streaming callback.
118+ *
119+ * @param callback the callback for streaming log lines
104120 */
105121 public void exec (StreamCallback <String > callback ) {
106122 try {
0 commit comments