A B C E F G H K M O P S T V 

A

add(String, int, long) - Method in interface org.apache.twill.kafka.client.KafkaConsumer.Preparer
Consumes messages from a given offset.
add(ByteBuffer, Object) - Method in interface org.apache.twill.kafka.client.KafkaPublisher.Preparer
Adds the given message to the message set, partitioned with the given partition key.
addChangeListener(BrokerService.BrokerChangeListener, Executor) - Method in interface org.apache.twill.kafka.client.BrokerService
Adds a listener to changes in broker list managed by this service.
addFromBeginning(String, int) - Method in interface org.apache.twill.kafka.client.KafkaConsumer.Preparer
Consumes messages from the earliest message available.
addLatest(String, int) - Method in interface org.apache.twill.kafka.client.KafkaConsumer.Preparer
Consumes messages from the latest message.

B

BrokerInfo - Class in org.apache.twill.kafka.client
Represents broker information.
BrokerInfo() - Constructor for class org.apache.twill.kafka.client.BrokerInfo
 
BrokerService - Interface in org.apache.twill.kafka.client
Service for providing information of kafka brokers.
BrokerService.BrokerChangeListener - Class in org.apache.twill.kafka.client
Listener for changes in broker list.
BrokerService.BrokerChangeListener() - Constructor for class org.apache.twill.kafka.client.BrokerService.BrokerChangeListener
 

C

changed(BrokerService) - Method in class org.apache.twill.kafka.client.BrokerService.BrokerChangeListener
Invoked when there is a change in the broker list.
Compression - Enum in org.apache.twill.kafka.client
An Enum representing different compression codec options for publishing messages.
consume(KafkaConsumer.MessageCallback) - Method in interface org.apache.twill.kafka.client.KafkaConsumer.Preparer
Starts the consumption as being configured by this KafkaConsumer.Preparer.

E

equals(Object) - Method in class org.apache.twill.kafka.client.BrokerInfo
 
equals(Object) - Method in class org.apache.twill.kafka.client.TopicPartition
 

F

FetchedMessage - Interface in org.apache.twill.kafka.client
 
FindFreePort - Class in org.apache.twill.launcher
Utility main class to find a free port on a machine.
FindFreePort() - Constructor for class org.apache.twill.launcher.FindFreePort
 
finished() - Method in interface org.apache.twill.kafka.client.KafkaConsumer.MessageCallback
Invoked when message consumption is stopped.

G

getAck() - Method in enum org.apache.twill.kafka.client.KafkaPublisher.Ack
Returns the numerical ack number as understand by Kafka server.
getBrokerList() - Method in interface org.apache.twill.kafka.client.BrokerService
Returns a comma separate string of all current brokers.
getBrokers() - Method in interface org.apache.twill.kafka.client.BrokerService
Returns a live iterable that gives information for all the known brokers.
getCodec() - Method in enum org.apache.twill.kafka.client.Compression
 
getConsumer() - Method in interface org.apache.twill.kafka.client.KafkaClient
Creates a KafkaConsumer for consuming messages.
getHost() - Method in class org.apache.twill.kafka.client.BrokerInfo
 
getLeader(String, int) - Method in interface org.apache.twill.kafka.client.BrokerService
Returns the broker information of the current leader of the given topic and partition.
getNextOffset() - Method in interface org.apache.twill.kafka.client.FetchedMessage
Returns the offset for the next message to be read.
getPartition() - Method in class org.apache.twill.kafka.client.TopicPartition
 
getPayload() - Method in interface org.apache.twill.kafka.client.FetchedMessage
 
getPort() - Method in class org.apache.twill.kafka.client.BrokerInfo
 
getPublisher(KafkaPublisher.Ack, Compression) - Method in interface org.apache.twill.kafka.client.KafkaClient
Creates a KafkaPublisher that is ready for publish.
getTopic() - Method in class org.apache.twill.kafka.client.TopicPartition
 
getTopicPartition() - Method in interface org.apache.twill.kafka.client.FetchedMessage
 

H

hashCode() - Method in class org.apache.twill.kafka.client.BrokerInfo
 
hashCode() - Method in class org.apache.twill.kafka.client.TopicPartition
 

K

KafkaClient - Interface in org.apache.twill.kafka.client
Represents a kafka client that can publish/subscribe to a Kafka server cluster.
KafkaClientService - Interface in org.apache.twill.kafka.client
A KafkaClient that extends Service to provide lifecycle management.
KafkaConsumer - Interface in org.apache.twill.kafka.client
A consumer for consuming (reading) messages published to a Kafka server cluster.
KafkaConsumer.MessageCallback - Interface in org.apache.twill.kafka.client
Callback for receiving new messages.
KafkaConsumer.Preparer - Interface in org.apache.twill.kafka.client
A builder for preparing message consumption.
KafkaPublisher - Interface in org.apache.twill.kafka.client
This interface is for publishing data to Kafka.
KafkaPublisher.Ack - Enum in org.apache.twill.kafka.client
Represents the desired level of publish acknowledgment.
KafkaPublisher.Preparer - Interface in org.apache.twill.kafka.client
A Preparer for preparing to publish messages to a given topic.

M

main(String[]) - Static method in class org.apache.twill.launcher.FindFreePort
 
main(String[]) - Static method in class org.apache.twill.launcher.TwillLauncher
Main method to unpackage a jar and run the mainClass.main() method.

O

onReceived(Iterator<FetchedMessage>) - Method in interface org.apache.twill.kafka.client.KafkaConsumer.MessageCallback
Invoked when new messages is available.
org.apache.twill.kafka.client - package org.apache.twill.kafka.client
This package provides Kafka client interfaces.
org.apache.twill.launcher - package org.apache.twill.launcher
 

P

prepare() - Method in interface org.apache.twill.kafka.client.KafkaConsumer
Prepares for message consumption.
prepare(String) - Method in interface org.apache.twill.kafka.client.KafkaPublisher
Prepares to publish to a given topic.

S

send() - Method in interface org.apache.twill.kafka.client.KafkaPublisher.Preparer
Sends all the messages being added through the KafkaPublisher.Preparer.add(java.nio.ByteBuffer, java.lang.Object) method.

T

TopicPartition - Class in org.apache.twill.kafka.client
Represents a combination of topic and partition.
TopicPartition(String, int) - Constructor for class org.apache.twill.kafka.client.TopicPartition
 
toString() - Method in class org.apache.twill.kafka.client.BrokerInfo
 
toString() - Method in class org.apache.twill.kafka.client.TopicPartition
 
TwillLauncher - Class in org.apache.twill.launcher
A launcher for application from a archive jar.
TwillLauncher() - Constructor for class org.apache.twill.launcher.TwillLauncher
 

V

valueOf(String) - Static method in enum org.apache.twill.kafka.client.Compression
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.apache.twill.kafka.client.KafkaPublisher.Ack
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.apache.twill.kafka.client.Compression
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.apache.twill.kafka.client.KafkaPublisher.Ack
Returns an array containing the constants of this enum type, in the order they are declared.
A B C E F G H K M O P S T V 

Copyright © 2013-2015 The Apache Software Foundation. All rights reserved.