aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/processor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mauve/processor.rb')
-rw-r--r--lib/mauve/processor.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/mauve/processor.rb b/lib/mauve/processor.rb
index e3aac54..f5e8fac 100644
--- a/lib/mauve/processor.rb
+++ b/lib/mauve/processor.rb
@@ -8,7 +8,7 @@ module Mauve
include Singleton
- attr_accessor :transmission_cache_expire_time, :sleep_interval
+ attr_reader :transmission_cache_expire_time
def initialize
super
@@ -24,6 +24,11 @@ module Mauve
@logger ||= Log4r::Logger.new(self.class.to_s)
end
+ def transmission_cache_expire_time=(i)
+ raise ArgumentError, "transmission_cache_expire_time must be an integer" unless i.is_a?(Integer)
+ @transmission_cache_expire_time = i
+ end
+
def main_loop
sz = Server.packet_buffer_size